diff --git a/src/http/router.ts b/src/managers/httpManager.ts similarity index 88% rename from src/http/router.ts rename to src/managers/httpManager.ts index d7eef60..efeab72 100644 --- a/src/http/router.ts +++ b/src/managers/httpManager.ts @@ -1,10 +1,10 @@ import { Application } from 'express' -import { AssetsController } from './controllers/assets' -import { AuthController } from './controllers/auth' -import { AvatarController } from './controllers/avatar' +import { AssetsController } from '#http/controllers/assets' +import { AuthController } from '#http/controllers/auth' +import { AvatarController } from '#http/controllers/avatar' -export class HttpRouter { +export class HttpManager { private readonly app: Application private readonly authController: AuthController private readonly avatarController: AvatarController diff --git a/src/server.ts b/src/server.ts index f713b80..3fa3796 100644 --- a/src/server.ts +++ b/src/server.ts @@ -10,7 +10,7 @@ import Database from '#application/database' import Logger, { LoggerType } from '#application/logger' import { getAppPath } from '#application/storage' import { TSocket } from '#application/types' -import { HttpRouter } from '#http/router' +import { HttpManager } from '#managers/httpManager' import ConsoleManager from '#managers/consoleManager' import DateManager from '#managers/dateManager' import QueueManager from '#managers/queueManager' @@ -65,9 +65,9 @@ export class Server { this.logger.error(`Socket.IO failed to start: ${error.message}`) } - // Load HTTP routes - const httpRouter = new HttpRouter(this.app) - await httpRouter.boot() + // Load HTTP manager + const httpManager = new HttpManager(this.app) + await httpManager.boot() // Load queue manager await QueueManager.boot(this.io)