feat: remove validation for upload image
This commit is contained in:
parent
1ea1e5cf46
commit
ebcf216fa7
|
@ -11,7 +11,7 @@
|
|||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"start": "nest start",
|
||||
"start:formatted": "nest start | pino-pretty",
|
||||
"start:dev": "nest start --watch",
|
||||
"start:dev": "nest start --watch | pino-pretty",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:prod": "node dist/main",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
import {
|
||||
Body,
|
||||
Controller,
|
||||
Get,
|
||||
Post,
|
||||
Body,
|
||||
Put,
|
||||
Param,
|
||||
Delete,
|
||||
ParseUUIDPipe,
|
||||
HttpStatus,
|
||||
Param,
|
||||
ParseUUIDPipe,
|
||||
Post,
|
||||
Put,
|
||||
Query,
|
||||
UseInterceptors,
|
||||
UploadedFile,
|
||||
Res,
|
||||
UploadedFile,
|
||||
UseInterceptors,
|
||||
} from '@nestjs/common';
|
||||
import { RoleService } from './roles.service';
|
||||
import { CommissionService } from './commission.service';
|
||||
import { FileInterceptor } from '@nestjs/platform-express';
|
||||
import { diskStorage } from 'multer';
|
||||
import { editFileName } from '../helper/file-handler';
|
||||
import { Public } from 'src/auth/public.decorator';
|
||||
|
||||
@Controller({
|
||||
path: 'config',
|
||||
|
@ -81,6 +81,7 @@ export class ConfigurableController {
|
|||
};
|
||||
}
|
||||
|
||||
@Public()
|
||||
@Post('/upload-files')
|
||||
@UseInterceptors(
|
||||
FileInterceptor('file', {
|
||||
|
|
Loading…
Reference in New Issue
Block a user