commented authorization code
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user