Skip to content

Commit

Permalink
GH-2141 Fix fake-api setup (Resolves #2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astahiell authored Jun 19, 2024
1 parent 0d7ea79 commit 4d3d26e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
File renamed without changes.
5 changes: 4 additions & 1 deletion reposilite-frontend/fake-api/fake-reposilite-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* limitations under the License.
*/

import { createRequire } from "module"
const require = createRequire(import.meta.url)

const express = require("express")
const expressWs = require("express-ws")
const bodyParser = require('body-parser')
Expand All @@ -29,7 +32,7 @@ const {
createFileDetails,
createDirectoryDetails,
generateDayWiseTimeSeries
} = require("./extensions")
} = require("./extensions.cjs")

const application = express()
expressWs(application)
Expand Down

0 comments on commit 4d3d26e

Please sign in to comment.