2022-03-06 12:27:11 +01:00
|
|
|
import { Module } from '@nestjs/common';
|
2022-02-23 19:09:53 +01:00
|
|
|
import { ServeStaticModule } from '@nestjs/serve-static';
|
2022-03-06 12:34:33 +01:00
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
2022-03-06 12:27:11 +01:00
|
|
|
import { PicsurConfigModule } from './config/config.module';
|
|
|
|
|
import { ServeStaticConfigService } from './config/servestatic.config.service';
|
2022-03-06 12:34:33 +01:00
|
|
|
import { TypeOrmConfigService } from './config/typeorm.config.service';
|
2022-03-07 16:36:40 +01:00
|
|
|
import { PicsurLoggerModule } from './logger/logger.module';
|
2022-03-07 20:19:58 +01:00
|
|
|
import { AuthManagerModule } from './managers/auth/auth.module';
|
2022-03-06 12:34:33 +01:00
|
|
|
import { DemoManagerModule } from './managers/demo/demomanager.module';
|
2022-03-12 15:36:01 +01:00
|
|
|
import { PicsurRoutesModule } from './routes/routes.module';
|
2022-03-06 12:27:11 +01:00
|
|
|
|
2022-02-21 10:46:03 +01:00
|
|
|
@Module({
|
2022-02-21 14:53:21 +01:00
|
|
|
imports: [
|
2022-03-06 12:27:11 +01:00
|
|
|
TypeOrmModule.forRootAsync({
|
|
|
|
|
useExisting: TypeOrmConfigService,
|
|
|
|
|
imports: [PicsurConfigModule],
|
2022-02-21 14:53:21 +01:00
|
|
|
}),
|
2022-03-06 12:27:11 +01:00
|
|
|
ServeStaticModule.forRootAsync({
|
|
|
|
|
useExisting: ServeStaticConfigService,
|
|
|
|
|
imports: [PicsurConfigModule],
|
2022-02-23 19:09:53 +01:00
|
|
|
}),
|
2022-03-12 15:36:01 +01:00
|
|
|
PicsurLoggerModule,
|
2022-03-07 20:19:58 +01:00
|
|
|
AuthManagerModule,
|
2022-02-25 14:13:19 +01:00
|
|
|
DemoManagerModule,
|
2022-03-12 15:36:01 +01:00
|
|
|
PicsurRoutesModule,
|
2022-02-21 14:53:21 +01:00
|
|
|
],
|
2022-02-21 10:46:03 +01:00
|
|
|
})
|
2022-03-04 15:28:56 +01:00
|
|
|
export class AppModule {}
|