diff --git a/package.json b/package.json index 1771d0d..291af1f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/configurable/configurable.controller.ts b/src/configurable/configurable.controller.ts index 1770219..aacae71 100644 --- a/src/configurable/configurable.controller.ts +++ b/src/configurable/configurable.controller.ts @@ -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', {