|
|
|
@ -1,8 +1,19 @@
|
|
|
|
|
import multer from 'multer'; |
|
|
|
|
import { Module } from '@nestjs/common'; |
|
|
|
|
import { MulterModule } from '@nestjs/platform-express'; |
|
|
|
|
import { NC_ATTACHMENT_FIELD_SIZE } from '../../constants'; |
|
|
|
|
import { PublicDatasService } from './public-datas.service'; |
|
|
|
|
import { PublicDatasController } from './public-datas.controller'; |
|
|
|
|
|
|
|
|
|
@Module({ |
|
|
|
|
imports: [ |
|
|
|
|
MulterModule.register({ |
|
|
|
|
storage: multer.diskStorage({}), |
|
|
|
|
limits: { |
|
|
|
|
fileSize: NC_ATTACHMENT_FIELD_SIZE, |
|
|
|
|
}, |
|
|
|
|
}), |
|
|
|
|
], |
|
|
|
|
controllers: [PublicDatasController], |
|
|
|
|
providers: [PublicDatasService], |
|
|
|
|
}) |
|
|
|
|