From 0e495bc31d475bfb56ddac5db226a0302bd4a1e2 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 29 Sep 2025 22:11:08 +0200 Subject: Silence, dotenv, we dont want your ads --- src/api/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/api/Server.ts') diff --git a/src/api/Server.ts b/src/api/Server.ts index 3db2e6e24..307978694 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -126,7 +126,8 @@ export class SpacebarServer extends Server { // 404 is not an error in express, so this should not be an error middleware // this is a fine place to put the 404 handler because its after we register the routes // and since its not an error middleware, our error handler below still works. - api.use("*", (req: Request, res: Response) => { + // Emma [it/its] @ Rory& - the _ is required now, as pillarjs throw an error if you don't pass a param name now + api.use("*_", (req: Request, res: Response) => { res.status(404).json({ message: "404 endpoint not found", code: 0, -- cgit 1.5.1