mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 14:25:17 +00:00
Fixed self-hosted example lack of __dirname and improved log
This commit is contained in:
@@ -13,6 +13,9 @@ import path from "node:path";
|
||||
import { PKPass } from "passkit-generator";
|
||||
import { app } from "./webserver.js";
|
||||
import { getCertificates } from "./shared.js";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
app.route("/fields/:modelName").get(async (request, response) => {
|
||||
const passName =
|
||||
|
||||
@@ -10,5 +10,5 @@ export const app = express();
|
||||
app.use(express.json());
|
||||
|
||||
app.listen(8080, "0.0.0.0", () => {
|
||||
console.log("Webserver started.");
|
||||
console.log("Webserver started on port 8080");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user