(@Param('id') contractorId: string)
| 79 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 80 | @Get('contractor/:id') |
| 81 | async getContractorById(@Param('id') contractorId: string) { |
| 82 | try { |
| 83 | return this.busService.getContractorById(contractorId); |
| 84 | } catch (error) { |
| 85 | if (error instanceof HttpException) { |
| 86 | throw new HttpException(error.message, error.getStatus()); |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | @UseGuards(JwtAuthGuard, AdminGuard) |
| 91 | @Post('contractor') |
| 92 | async createNewContractor(@Body() contractor: ContractorDto) { |
nothing calls this directly
no outgoing calls
no test coverage detected