[fixed] - app ts
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user