summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-21 14:48:47 +0100
committerRory& <root@rory.gay>2026-03-21 14:48:47 +0100
commit894bfbe6d4526a472bc0b4e14a2f96c256f6cbb3 (patch)
treefca82046071e1a0e5c0d655b533cb551f08bc0fa
parentFix schemas script (diff)
downloadserver-ts-894bfbe6d4526a472bc0b4e14a2f96c256f6cbb3.tar.xz
lambert-server: dont overwrite express Router class
-rw-r--r--src/util/util/lambert-server/Server.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util/util/lambert-server/Server.ts b/src/util/util/lambert-server/Server.ts

index ac45f206..7ef7e6b6 100644 --- a/src/util/util/lambert-server/Server.ts +++ b/src/util/util/lambert-server/Server.ts
@@ -12,15 +12,6 @@ export type ServerOptions = { app: Application; }; -// Overwrite default options for Router with default value true for mergeParams -const oldRouter = express.Router; -express.Router = function (options?: express.RouterOptions | undefined): Router { - if (!options) options = {}; - if (options.mergeParams == null) options.mergeParams = true; - - return oldRouter(options); -}; - export class Server { public app: Application; public http: HTTPServer;