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

Method createNewBus

backend/src/Bus/bus.controller.ts:37–45  ·  view source on GitHub ↗
(@Body() bus: BusDto)

Source from the content-addressed store, hash-verified

35 @UseGuards(JwtAuthGuard, AdminGuard)
36 @Post('bus')
37 async createNewBus(@Body() bus: BusDto) {
38 try {
39 return this.busService.createBus(bus);
40 } catch (error) {
41 if (error instanceof HttpException) {
42 throw new HttpException(error.message, error.getStatus());
43 }
44 }
45 }
46 @UseGuards(JwtAuthGuard, AdminGuard)
47 @Get('conductor')
48 async getAllConductors() {

Callers

nothing calls this directly

Calls 1

createBusMethod · 0.80

Tested by

no test coverage detected