From 20356cceda219a73fb58be7db6450d43a856873c Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Sun, 5 Jan 2025 04:17:11 -0600 Subject: [PATCH] Update RoleController to use JwtAuthGuard --- src/role/controllers/role.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/role/controllers/role.controller.ts b/src/role/controllers/role.controller.ts index 8d0d401..c684d68 100644 --- a/src/role/controllers/role.controller.ts +++ b/src/role/controllers/role.controller.ts @@ -1,9 +1,9 @@ import { Controller, Get, HttpStatus, UseGuards } from '@nestjs/common'; import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger'; import { RoleService } from '../services/role.service'; -import { SuperAdminRoleGuard } from 'src/guards/super.admin.role.guard'; import { EnableDisableStatusEnum } from '@app/common/constants/days.enum'; import { ControllerRoute } from '@app/common/constants/controller-route'; // Assuming this is where the routes are defined +import { JwtAuthGuard } from '@app/common/guards/jwt.auth.guard'; @ApiTags('Role Module') @Controller({ @@ -14,7 +14,7 @@ export class RoleController { constructor(private readonly roleService: RoleService) {} @ApiBearerAuth() - @UseGuards(SuperAdminRoleGuard) + @UseGuards(JwtAuthGuard) @Get('types') @ApiOperation({ summary: ControllerRoute.ROLE.ACTIONS.FETCH_ROLE_TYPES_SUMMARY,