summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-10-07 16:06:53 +0200
committerRory& <root@rory.gay>2025-10-07 16:06:53 +0200
commitf5f531eebb386db65fafc9dcb323d768f4ef6d1b (patch)
tree6a8757840dfbdb6430cd266ad5cb2ae55a668ad0 /src/api
parentCI: update actions (diff)
downloadserver-ts-f5f531eebb386db65fafc9dcb323d768f4ef6d1b.tar.xz
fix path
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Server.ts4
1 files 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);