()
| 46 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 47 | @Get('conductor') |
| 48 | async getAllConductors() { |
| 49 | try { |
| 50 | return this.busService.getConductors(); |
| 51 | } catch (error) { |
| 52 | if (error instanceof HttpException) { |
| 53 | throw new HttpException(error.message, error.getStatus()); |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 58 | @Get('conductor/:id') |
| 59 | async getConductorById(@Param('id') conductorId: string) { |
nothing calls this directly
no test coverage detected