()
| 68 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 69 | @Get('contractor') |
| 70 | async getAllContractors() { |
| 71 | try { |
| 72 | return this.busService.getContractors(); |
| 73 | } catch (error) { |
| 74 | if (error instanceof HttpException) { |
| 75 | throw new HttpException(error.message, error.getStatus()); |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 80 | @Get('contractor/:id') |
| 81 | async getContractorById(@Param('id') contractorId: string) { |
nothing calls this directly
no test coverage detected