summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-09-29 22:11:08 +0200
committerRory& <root@rory.gay>2025-09-29 22:18:38 +0200
commit0e495bc31d475bfb56ddac5db226a0302bd4a1e2 (patch)
tree9556b378f8085e6c4907c6e1d0df98dcff951134 /src/api
parentBump nodejs to 24 (diff)
downloadserver-ts-0e495bc31d475bfb56ddac5db226a0302bd4a1e2.tar.xz
Silence, dotenv, we dont want your ads
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Server.ts3
-rw-r--r--src/api/start.ts2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index 3db2e6e2..30797869 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, diff --git a/src/api/start.ts b/src/api/start.ts
index ff447f48..b584a9fd 100644 --- a/src/api/start.ts +++ b/src/api/start.ts
@@ -23,7 +23,7 @@ process.on("unhandledRejection", console.error); import "missing-native-js-functions"; import { config } from "dotenv"; -config(); +config({ quiet: true }); import { SpacebarServer } from "./Server"; import cluster from "cluster"; import os from "os";