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

Method getAllContractors

backend/src/Bus/bus.controller.ts:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 @UseGuards(JwtAuthGuard, AdminGuard)
69 @Get('contractor')
70 async getAllContractors() {
71 try {
72 return this.busService.getContractors();
73 } catch (error) {
74 if (error instanceof HttpException) {
75 throw new HttpException(error.message, error.getStatus());
76 }
77 }
78 }
79 @UseGuards(JwtAuthGuard, AdminGuard)
80 @Get('contractor/:id')
81 async getContractorById(@Param('id') contractorId: string) {

Callers

nothing calls this directly

Calls 1

getContractorsMethod · 0.80

Tested by

no test coverage detected