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

Method createNewConductor

backend/src/Bus/bus.controller.ts:114–122  ·  view source on GitHub ↗
(@Body() conductor: ConductorDto)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

createConductorMethod · 0.80

Tested by

no test coverage detected