Controller: wrap use() middlewares to handle async

This commit is contained in:
Alice Gaudon 2020-11-11 18:15:23 +01:00
parent 79c2f33000
commit ead3c8ce1e

View File

@ -75,7 +75,7 @@ export default abstract class Controller {
}
protected use(handler: RequestHandler): void {
this.router.use(handler);
this.router.use(this.wrap(handler));
}
protected get(