-
Notifications
You must be signed in to change notification settings - Fork 0
/
email-api.module.ts
37 lines (35 loc) · 1.01 KB
/
email-api.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {
ApiKey,
NotificationLog,
NotificationLogSchema,
RabbitMqModule,
Role,
User,
} from '@app/common';
import { EmailApiController } from './email-api.controller';
import { EmailApiService } from './email-api.service';
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { MongooseModule } from '@nestjs/mongoose';
import { MulterModule } from '@nestjs/platform-express';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,
}),
RabbitMqModule,
MulterModule.register({
limits: {
fileSize: 16000000,
},
}),
MongooseModule.forFeature([
{ name: NotificationLog.name, schema: NotificationLogSchema },
]),
TypeOrmModule.forFeature([ApiKey, User, Role], 'postgres'),
],
controllers: [EmailApiController],
providers: [EmailApiService],
})
export class EmailApiModule {}