mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
🐛 fix server bundle
This commit is contained in:
1 parent
aa5ed0a5ba
commit
d0bb45e0c4
31 files changed
+1183
-72
No files matched your search
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user