mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-23 18:05:50 +00:00
@@ -17,8 +17,8 @@ import { ImagesService } from './images.service';
|
|||||||
export class ImagesController {
|
export class ImagesController {
|
||||||
constructor(private readonly imagesService: ImagesService) {}
|
constructor(private readonly imagesService: ImagesService) {}
|
||||||
|
|
||||||
@UseGuards(AuthGuard('keycloak'), UserProvisioningGuard, RolesGuard)
|
@UseGuards(AuthGuard('keycloak'))
|
||||||
@Roles(UserRole.ADMIN, UserRole.EDITOR, UserRole.AUTHOR)
|
//@Roles(UserRole.ADMIN, UserRole.EDITOR, UserRole.AUTHOR)
|
||||||
@Post('upload')
|
@Post('upload')
|
||||||
@UseInterceptors(FileInterceptor('file', { limits: { fileSize: 15 * 1024 * 1024 } }))
|
@UseInterceptors(FileInterceptor('file', { limits: { fileSize: 15 * 1024 * 1024 } }))
|
||||||
upload(@UploadedFile() file: Express.Multer.File) {
|
upload(@UploadedFile() file: Express.Multer.File) {
|
||||||
|
|||||||
Reference in New Issue
Block a user