From 52331aabb0231036058da1edbd64e63a4f4bd866 Mon Sep 17 00:00:00 2001 From: Mathieu Lussier Date: Fri, 5 Jul 2024 15:52:14 -0400 Subject: [PATCH] rename --- src/app.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.ts b/src/app.ts index b404988..f58558d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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); } }