Update app.ts

parent 4683e288
......@@ -10,9 +10,9 @@ class App {
this.app = express();
this.port = appInit.port;
this.initAssets();
this.initMiddlewares(appInit.middlewares);
this.initRoutes(appInit.controllers);
this.initAssets();
}
private initMiddlewares(middlewares: RequestHandler[]) {
middlewares.forEach((middleware) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment