From dbdfbf61f29f6e454c0543c977afb4061d24afa8 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 15 Aug 2021 21:56:30 +0200 Subject: :bug: fix server bundle --- api/src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api/src') 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; -- cgit 1.5.1