|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { Inject, Module, RequestMethod } from '@nestjs/common' |
|
|
|
|
import { Inject, Module, RequestMethod } from '@nestjs/common'; |
|
|
|
|
import { APP_FILTER } from '@nestjs/core'; |
|
|
|
|
import { Connection } from './connection/connection'; |
|
|
|
|
import { GlobalExceptionFilter } from './filters/global-exception/global-exception.filter'; |
|
|
|
@ -7,13 +7,15 @@ import { GlobalMiddleware } from './middlewares/global/global.middleware';
|
|
|
|
|
import { GuiMiddleware } from './middlewares/gui/gui.middleware'; |
|
|
|
|
import { PublicMiddleware } from './middlewares/public/public.middleware'; |
|
|
|
|
import { DatasModule } from './modules/datas/datas.module'; |
|
|
|
|
import { IEventEmitter } from './modules/event-emitter/event-emitter.interface' |
|
|
|
|
import { IEventEmitter } from './modules/event-emitter/event-emitter.interface'; |
|
|
|
|
import { EventEmitterModule } from './modules/event-emitter/event-emitter.module'; |
|
|
|
|
import { AuthService } from './services/auth.service'; |
|
|
|
|
import { UsersModule } from './modules/users/users.module'; |
|
|
|
|
import { MetaService } from './meta/meta.service'; |
|
|
|
|
import Noco from './Noco'; |
|
|
|
|
import { TestModule } from './modules/test/test.module'; |
|
|
|
|
import { GlobalModule } from './modules/global/global.module'; |
|
|
|
|
import { HookHandlerService } from './services/hook-handler.service'; |
|
|
|
|
import { LocalStrategy } from './strategies/local.strategy'; |
|
|
|
|
import { AuthTokenStrategy } from './strategies/authtoken.strategy/authtoken.strategy'; |
|
|
|
|
import { BaseViewStrategy } from './strategies/base-view.strategy/base-view.strategy'; |
|
|
|
@ -25,7 +27,6 @@ import type {
|
|
|
|
|
MiddlewareConsumer, |
|
|
|
|
OnApplicationBootstrap, |
|
|
|
|
} from '@nestjs/common'; |
|
|
|
|
import { HookHandlerService } from './services/hook-handler.service'; |
|
|
|
|
|
|
|
|
|
@Module({ |
|
|
|
|
imports: [ |
|
|
|
@ -34,6 +35,7 @@ import { HookHandlerService } from './services/hook-handler.service';
|
|
|
|
|
...(process.env['PLAYWRIGHT_TEST'] === 'true' ? [TestModule] : []), |
|
|
|
|
MetasModule, |
|
|
|
|
DatasModule, |
|
|
|
|
EventEmitterModule, |
|
|
|
|
], |
|
|
|
|
controllers: [], |
|
|
|
|
providers: [ |
|
|
|
|