[fixed] - app ts

This commit is contained in:
Swapnil Bendal
2024-12-18 15:10:32 +05:30
parent b8feb4bf89
commit b359e0e2d0

View File

@@ -38,12 +38,8 @@ class App {
}
private initializeErrorHandling(): void {
this.app.use(error.errorHandler);
this.app.use(error.errorConverter);
this.app.use((req, res, next) => {
console.log('Request passed through middleware.');
next();
});
this.app.use(error.errorHandler);
}
public listen(port: number): ReturnType<typeof this.app.listen> {