refactor: cleanup

This commit is contained in:
wea_ondara
2024-05-28 17:26:46 +02:00
parent 6ce07e29d7
commit 341ec0e44e
3 changed files with 1 additions and 4 deletions

View File

@@ -86,14 +86,12 @@ export default class Server {
//middlewares
this.express.use(compression());
// await registerOpenApiFirst(this.express, this.config);
this.express.use(session(getSessionSettings(this.config, sessionStore)));
this.express.use(sessionUserdataMiddleware());
this.express.use(express.json());
registerRoutes(this.express, this.config, this.expressWsInstance);
this.express.use(errorLogHandler());
this.express.use(apiErrorHandler());
// registerOpenApiLast(this.express);
this.express.use(uncaughtErrorHandler());
const expressWsProviderFactory = () => new ExpressWsProvider(this.expressWsInstance!);