summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-15 21:56:30 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-15 21:56:30 +0200
commitdbdfbf61f29f6e454c0543c977afb4061d24afa8 (patch)
tree25f6ca9692eeda3cdb6657aec0b4ee87c1acdedb /api/src
parent:bug: prevent @everyone role deletion (diff)
downloadserver-dbdfbf61f29f6e454c0543c977afb4061d24afa8.tar.xz
:bug: fix server bundle
Diffstat (limited to 'api/src')
-rw-r--r--api/src/Server.ts3
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;