configuration/src/app.module.ts

17 lines
505 B
TypeScript
Raw Normal View History

2023-01-25 14:16:13 +00:00
import { classes } from '@automapper/classes';
import { AutomapperModule } from '@automapper/nestjs';
2023-01-25 09:50:05 +00:00
import { Module } from '@nestjs/common';
2023-01-25 14:16:13 +00:00
import { ConfigModule } from '@nestjs/config';
import { ConfigurationModule } from './modules/configuration/configuration.module';
2023-01-25 09:50:05 +00:00
@Module({
2023-01-25 14:16:13 +00:00
imports: [
ConfigModule.forRoot({ isGlobal: true }),
AutomapperModule.forRoot({ strategyInitializer: classes() }),
ConfigurationModule,
],
controllers: [],
providers: [],
2023-01-25 09:50:05 +00:00
})
export class AppModule {}