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