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

Method createTicket

backend/src/ticket/ticket.controller.ts:18–27  ·  view source on GitHub ↗
(@Req() req: Request)

Source from the content-addressed store, hash-verified

16 @UseGuards(JwtAuthGuard)
17 @Post('/create')
18 async createTicket(@Req() req: Request) {
19 try {
20 return this.TicketService.createTicket(
21 req.body.orderId,
22 req.body.passengerEmail
23 );
24 } catch (err) {
25 throw new Error(err);
26 }
27 }
28 @UseGuards(JwtAuthGuard)
29 @Get('/by-passenger-email')
30 async getSchedulesByPassengerEmail(@Query('email') email: string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected