lambert-server: dont overwrite express Router class

This commit is contained in:
Rory&
2026-03-21 14:48:47 +01:00
parent 48eb55ee07
commit 894bfbe6d4

View File

@@ -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;