Skip to content

Commit

Permalink
Merge pull request #1188 from Homoakin619/feat/db-connection-fix
Browse files Browse the repository at this point in the history
fix: removed api bearer auth decorator from job open routes
  • Loading branch information
Homoakin619 authored Aug 25, 2024
2 parents ea088ff + aae83da commit e4079ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/jobs/jobs.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { SuperAdminGuard } from '../../guards/super-admin.guard';
import { JobSearchDto } from './dto/jobSearch.dto';

@ApiTags('Jobs')
@ApiBearerAuth()
@Controller('jobs')
export class JobsController {
constructor(private readonly jobService: JobsService) {}
Expand Down Expand Up @@ -62,6 +61,7 @@ export class JobsController {

@UseGuards(SuperAdminGuard)
@Post('/')
@ApiBearerAuth()
@ApiOperation({ summary: 'Create a new job' })
@ApiResponse({ status: 201, description: 'Job created successfully' })
@ApiResponse({ status: 404, description: 'User not found' })
Expand All @@ -70,6 +70,7 @@ export class JobsController {
return this.jobService.create(createJobDto, user.sub);
}

@skipAuth()
@Get('search')
@ApiOperation({ summary: 'Search for job listings' })
@ApiQuery({ name: 'page', required: false, type: Number })
Expand Down Expand Up @@ -107,6 +108,7 @@ export class JobsController {

@UseGuards(SuperAdminGuard)
@Delete('/:id')
@ApiBearerAuth()
@ApiOperation({ summary: 'Delete a job' })
@ApiResponse({ status: 200, description: 'Job deleted successfully' })
@ApiResponse({ status: 403, description: 'You do not have permission to perform this action' })
Expand Down

0 comments on commit e4079ae

Please sign in to comment.