(@Body() conductor: ConductorDto)
| 112 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 113 | @Post('conductor') |
| 114 | async createNewConductor(@Body() conductor: ConductorDto) { |
| 115 | try { |
| 116 | return this.busService.createConductor(conductor); |
| 117 | } catch (error) { |
| 118 | if (error instanceof HttpException) { |
| 119 | throw new HttpException(error.message, error.getStatus()); |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 124 | @Delete('conductor/:id') |
| 125 | async removeConductor(@Param('id') conductorId: string) { |
nothing calls this directly
no test coverage detected