commented auth for delete blog api

This commit is contained in:
2025-10-28 13:18:10 +05:30
parent 4260da30b7
commit 04c3c6ddbe

View File

@@ -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);