This commit is contained in:
Mathieu Lussier 2024-07-05 15:52:14 -04:00
parent 934809a651
commit 52331aabb0
Signed by: mathieulussier
GPG Key ID: EF8AC4E6BA8BCAB3

View File

@ -21,7 +21,7 @@ import httpStatus from 'http-status';
export default class App {
public app: Application = express();
protected _routers = [new IndexController()];
protected _controllers = [new IndexController()];
protected _tasks = [new ApiTask()];
@ -49,8 +49,8 @@ export default class App {
}
routes(): void {
for (const router of this._routers) {
this.app.use(router.router);
for (const controller of this._controllers) {
this.app.use(controller.router);
}
}