Controller: wrap use() middlewares to handle async
This commit is contained in:
parent
79c2f33000
commit
ead3c8ce1e
@ -75,7 +75,7 @@ export default abstract class Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected use(handler: RequestHandler): void {
|
protected use(handler: RequestHandler): void {
|
||||||
this.router.use(handler);
|
this.router.use(this.wrap(handler));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected get(
|
protected get(
|
||||||
|
Loading…
Reference in New Issue
Block a user