user/src/app.module.ts

19 lines
582 B
TypeScript
Raw Normal View History

2022-12-14 10:37:13 +00:00
import { classes } from '@automapper/classes';
import { AutomapperModule } from '@automapper/nestjs';
2022-12-13 12:39:06 +00:00
import { Module } from '@nestjs/common';
2022-12-13 17:00:07 +00:00
import { ConfigModule } from '@nestjs/config';
2023-01-26 15:48:47 +00:00
import { ConfigurationModule } from './modules/configuration/configuration.module';
2022-12-13 17:00:07 +00:00
import { UsersModule } from './modules/users/users.module';
2022-12-13 12:39:06 +00:00
@Module({
2022-12-14 10:37:13 +00:00
imports: [
ConfigModule.forRoot({ isGlobal: true }),
AutomapperModule.forRoot({ strategyInitializer: classes() }),
UsersModule,
2023-01-26 15:48:47 +00:00
ConfigurationModule,
2022-12-14 10:37:13 +00:00
],
2022-12-13 12:39:06 +00:00
controllers: [],
providers: [],
})
export class AppModule {}