Remove roles
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
|||||||
Body,
|
Body,
|
||||||
Query,
|
Query,
|
||||||
UseGuards,
|
UseGuards,
|
||||||
Injectable,
|
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { videos, Prisma, video_situation } from 'generated/prisma';
|
import { videos, Prisma, video_situation } from 'generated/prisma';
|
||||||
|
|
||||||
@@ -16,11 +15,9 @@ import { PaginatedQueryDto, PaginatedResponse } from '../shared/dto/paginated';
|
|||||||
import { EBooleanPipe } from '../shared/pipe';
|
import { EBooleanPipe } from '../shared/pipe';
|
||||||
import { KeycloakAuthGuard } from '../auth/keycloak-auth.guard';
|
import { KeycloakAuthGuard } from '../auth/keycloak-auth.guard';
|
||||||
import { Roles } from 'src/auth/decorator/roles.decorator';
|
import { Roles } from 'src/auth/decorator/roles.decorator';
|
||||||
import { RolesGuard } from 'src/auth/roles.guard';
|
|
||||||
|
|
||||||
@Injectable()
|
|
||||||
@Controller('videos')
|
@Controller('videos')
|
||||||
@UseGuards(KeycloakAuthGuard, RolesGuard)
|
@UseGuards(KeycloakAuthGuard)
|
||||||
export class VideosController {
|
export class VideosController {
|
||||||
constructor(private readonly videosService: VideosService) {}
|
constructor(private readonly videosService: VideosService) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user