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 {
|
||||
constructor(private readonly imagesService: ImagesService) {}
|
||||
|
||||
@UseGuards(AuthGuard('keycloak'), UserProvisioningGuard, RolesGuard)
|
||||
@Roles(UserRole.ADMIN, UserRole.EDITOR, UserRole.AUTHOR)
|
||||
@UseGuards(AuthGuard('keycloak'))
|
||||
//@Roles(UserRole.ADMIN, UserRole.EDITOR, UserRole.AUTHOR)
|
||||
@Post('upload')
|
||||
@UseInterceptors(FileInterceptor('file', { limits: { fileSize: 15 * 1024 * 1024 } }))
|
||||
upload(@UploadedFile() file: Express.Multer.File) {
|
||||
|
||||
Reference in New Issue
Block a user