1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts
index 0475b53e6..f7307b3a7 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);
|