add injectable

This commit is contained in:
LeoMortari
2025-09-15 01:52:55 -03:00
parent a5708cb7c9
commit 06bc26b1b0

View File

@@ -6,6 +6,7 @@ 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';
@@ -17,6 +18,7 @@ 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'; import { RolesGuard } from 'src/auth/roles.guard';
@Injectable()
@Controller('videos') @Controller('videos')
@UseGuards(KeycloakAuthGuard, RolesGuard) @UseGuards(KeycloakAuthGuard, RolesGuard)
export class VideosController { export class VideosController {