fix path
This commit is contained in:
parent
c91b033d93
commit
f5f531eebb
@ -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("/verify-email", (req, res) => res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "verify.html")));
|
||||||
|
|
||||||
app.get("/_spacebar/api/schemas.json", (req, res) => {
|
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) => {
|
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);
|
this.app.use(ErrorHandler);
|
||||||
|
|||||||
Reference in New Issue
Block a user