🐛 fix server bundle

This commit is contained in:
Flam3rboy committed 2021-08-15 21:56:30 +02:00
1 parent aa5ed0a5ba
commit d0bb45e0c4
31 files changed
+1183 -72

No files matched your search

+2 -1
View File
@@ -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;