Commit ccaf091a authored by Разиев Абдрашид's avatar Разиев Абдрашид 💬

Revert "Sorry"

This reverts commit f7bfcab7
parent a89bea9a
...@@ -4,7 +4,6 @@ import { AppInit } from './interfaces/AppInit.interface'; ...@@ -4,7 +4,6 @@ import { AppInit } from './interfaces/AppInit.interface';
import { IRoute } from './interfaces/IRoute.interface'; import { IRoute } from './interfaces/IRoute.interface';
import {errorHandler} from "@/middlewares/errorHandler"; import {errorHandler} from "@/middlewares/errorHandler";
console.log(1)
class App { class App {
public app: Application; public app: Application;
public port: number; public port: number;
...@@ -17,7 +16,6 @@ class App { ...@@ -17,7 +16,6 @@ class App {
this.initRoutes(appInit.controllers); this.initRoutes(appInit.controllers);
this.initErrorHandler() this.initErrorHandler()
} }
private initMiddlewares(middlewares: RequestHandler[]) { private initMiddlewares(middlewares: RequestHandler[]) {
middlewares.forEach((middleware) => { middlewares.forEach((middleware) => {
this.app.use(middleware); this.app.use(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