1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/Server.ts b/api/src/Server.ts
index 5c5d5fc0..332c28de 100644
--- a/api/src/Server.ts
+++ b/api/src/Server.ts
@@ -69,11 +69,12 @@ export class FosscordServer extends Server {
this.routes = await this.registerRoutes(path.join(__dirname, "routes", "/"));
- api.use("*", (req: Request, res: Response) => {
+ api.use("*", (req: Request, res: Response, next) => {
res.status(404).json({
message: "404: Not Found",
code: 0
});
+ next();
});
this.app = app;
|