summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-09-30 07:14:10 +0200
committerRory& <root@rory.gay>2025-09-30 07:14:10 +0200
commitd647f882b179bdaba8311717563d83fddc52a3dd (patch)
treef8ff4f64dca4aa90d8567e04dba64500d05efe50 /src/api/Server.ts
parentFix nix package (diff)
downloadserver-ts-d647f882b179bdaba8311717563d83fddc52a3dd.tar.xz
Pass mergeParams: true to new router calls due to express behavior change
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index 30797869..f04e1d4b 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -109,7 +109,7 @@ export class SpacebarServer extends Server { this.app.use(BodyParser({ inflate: true, limit: "10mb" })); const app = this.app; - const api = Router(); + const api = Router({ mergeParams: true }); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore this.app = api;