commented authorization code

This commit is contained in:
2025-10-28 12:17:35 +05:30
parent f55624d78e
commit 4260da30b7

View File

@@ -81,13 +81,13 @@ export class BlogsController {
}
@Patch(':id')
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles('ADMIN', 'HR')
@ApiBearerAuth()
// @UseGuards(JwtAuthGuard, RolesGuard)
// @Roles('ADMIN', 'HR')
// @ApiBearerAuth()
@ApiOperation({ summary: 'Update blog post' })
@ApiResponse({ status: 200, description: 'Blog updated successfully', type: BlogResponseDto })
@ApiResponse({ status: 404, description: 'Blog not found' })
@ApiResponse({ status: 401, description: 'Unauthorized' })
// @ApiResponse({ status: 401, description: 'Unauthorized' })
@ApiResponse({ status: 403, description: 'Forbidden' })
async update(
@Param('id', ParseIntPipe) id: number,