rename
This commit is contained in:
parent
934809a651
commit
52331aabb0
|
@ -21,7 +21,7 @@ import httpStatus from 'http-status';
|
||||||
export default class App {
|
export default class App {
|
||||||
public app: Application = express();
|
public app: Application = express();
|
||||||
|
|
||||||
protected _routers = [new IndexController()];
|
protected _controllers = [new IndexController()];
|
||||||
|
|
||||||
protected _tasks = [new ApiTask()];
|
protected _tasks = [new ApiTask()];
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ export default class App {
|
||||||
}
|
}
|
||||||
|
|
||||||
routes(): void {
|
routes(): void {
|
||||||
for (const router of this._routers) {
|
for (const controller of this._controllers) {
|
||||||
this.app.use(router.router);
|
this.app.use(controller.router);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user