Changed self-hosted to run on ESM

This commit is contained in:
Alexander Cerutti
2025-01-11 15:36:43 +01:00
parent 028831ea9a
commit 4044125e6a
12 changed files with 343 additions and 42 deletions

View File

@@ -8,10 +8,10 @@
* by a string
*/
import { app } from "./webserver";
import { getCertificates } from "./shared";
import { PKPass } from "passkit-generator";
import path from "node:path";
import { app } from "./webserver.js";
import { getCertificates } from "./shared.js";
app.route("/barcodes/:modelName").get(async (request, response) => {
const passName =