Router is now httpManager
This commit is contained in:
parent
5c94584cb2
commit
baf0350102
@ -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
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user