From f5f531eebb386db65fafc9dcb323d768f4ef6d1b Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 7 Oct 2025 16:06:53 +0200 Subject: [PATCH] fix path --- src/api/Server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/Server.ts b/src/api/Server.ts index 0475b53e..f7307b3a 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -119,11 +119,11 @@ export class SpacebarServer extends Server { app.get("/verify-email", (req, res) => res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "verify.html"))); app.get("/_spacebar/api/schemas.json", (req, res) => { - res.sendFile(path.join(__dirname, "schemas.json")); + res.sendFile(path.join(ASSETS_FOLDER, "schemas.json")); }); app.get("/_spacebar/api/openapi.json", (req, res) => { - res.sendFile(path.join(__dirname, "openapi.json")); + res.sendFile(path.join(ASSETS_FOLDER, "openapi.json")); }); this.app.use(ErrorHandler);