MCPcopy Create free account
hub / github.com/bsoc-bitbyte/busify / getContractorById

Method getContractorById

backend/src/Bus/bus.controller.ts:81–89  ·  view source on GitHub ↗
(@Param('id') contractorId: string)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected