Fixed missing __dirname in all the self-hosted examples

This commit is contained in:
Alexander Cerutti
2025-09-18 01:02:44 +02:00
parent d823ebf5b6
commit 95dfb64747
5 changed files with 24 additions and 4 deletions

View File

@@ -8,10 +8,13 @@
*/
import path from "node:path";
import { fileURLToPath } from "node:url";
import { PKPass } from "passkit-generator";
import { app } from "./webserver.js";
import { getCertificates } from "./shared.js";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
app.route("/expirationDate/:modelName").get(async (request, response) => {
if (!request.query.fn) {
response.send(