(@Param('id') conductorId: string)
| 57 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 58 | @Get('conductor/:id') |
| 59 | async getConductorById(@Param('id') conductorId: string) { |
| 60 | try { |
| 61 | return this.busService.getConductorById(conductorId); |
| 62 | } catch (error) { |
| 63 | if (error instanceof HttpException) { |
| 64 | throw new HttpException(error.message, error.getStatus()); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 69 | @Get('contractor') |
| 70 | async getAllContractors() { |
nothing calls this directly
no outgoing calls
no test coverage detected