commented auth for delete blog api
This commit is contained in:
@@ -97,13 +97,13 @@ export class BlogsController {
|
||||
}
|
||||
|
||||
@Delete(':id')
|
||||
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||
@Roles('ADMIN', 'HR')
|
||||
@ApiBearerAuth()
|
||||
// @UseGuards(JwtAuthGuard, RolesGuard)
|
||||
// @Roles('ADMIN', 'HR')
|
||||
// @ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Delete blog post (soft delete)' })
|
||||
@ApiResponse({ status: 200, description: 'Blog deleted successfully' })
|
||||
@ApiResponse({ status: 404, description: 'Blog not found' })
|
||||
@ApiResponse({ status: 401, description: 'Unauthorized' })
|
||||
// @ApiResponse({ status: 401, description: 'Unauthorized' })
|
||||
@ApiResponse({ status: 403, description: 'Forbidden' })
|
||||
async remove(@Param('id', ParseIntPipe) id: number): Promise<{ message: string }> {
|
||||
await this.blogsService.remove(id);
|
||||
|
||||
Reference in New Issue
Block a user