Router is now httpManager

This commit is contained in:
Dennis Postma 2024-12-28 21:33:32 +01:00
parent 5c94584cb2
commit baf0350102
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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)