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';
|
|
|
|
|
import { DemoManagerModule } from './managers/demo/demomanager.module';
|
|
|
|
|
import { AuthModule } from './routes/api/auth/auth.module';
|
|
|
|
|
import { PrefModule } from './routes/api/pref/pref.module';
|
|
|
|
|
import { ImageModule } from './routes/image/imageroute.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-02-21 14:53:21 +01:00
|
|
|
AuthModule,
|
2022-02-21 22:36:47 +01:00
|
|
|
ImageModule,
|
2022-02-25 14:13:19 +01:00
|
|
|
DemoManagerModule,
|
2022-03-04 14:37:00 +01:00
|
|
|
PrefModule,
|
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 {}
|