user/src/app.module.ts

17 lines
473 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';
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,
],
2022-12-13 12:39:06 +00:00
controllers: [],
providers: [],
})
export class AppModule {}