mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 05:55:02 +00:00
Update schedules.controller.ts
This commit is contained in:
@@ -80,7 +80,7 @@ export class SchedulesController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Patch('routes/fare-rules/:id')
|
@Patch('routes/fare-rules/:id')
|
||||||
@UseGuards(JwtGuard) @ApiBearerAuth('JWT-auth')
|
@PassengerStaff([PASSENGER_PERMS.schedules.manage, PASSENGER_PERMS.admin]) @ApiBearerAuth('IAM-auth')
|
||||||
@ApiOperation({ summary: 'Update a route-level fare override' })
|
@ApiOperation({ summary: 'Update a route-level fare override' })
|
||||||
@ApiParam({ name: 'id', description: 'RouteFareRule UUID' })
|
@ApiParam({ name: 'id', description: 'RouteFareRule UUID' })
|
||||||
updateRouteFareRule(@Param('id') id: string, @Body() dto: any) {
|
updateRouteFareRule(@Param('id') id: string, @Body() dto: any) {
|
||||||
@@ -96,7 +96,7 @@ export class SchedulesController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Post('routes/:routeId/fare-rules')
|
@Post('routes/:routeId/fare-rules')
|
||||||
@UseGuards(JwtGuard) @ApiBearerAuth('JWT-auth')
|
@PassengerStaff([PASSENGER_PERMS.schedules.manage, PASSENGER_PERMS.admin]) @ApiBearerAuth('IAM-auth')
|
||||||
@ApiOperation({ summary: 'Create a route-level fare override' })
|
@ApiOperation({ summary: 'Create a route-level fare override' })
|
||||||
@ApiParam({ name: 'routeId', description: 'Route UUID' })
|
@ApiParam({ name: 'routeId', description: 'Route UUID' })
|
||||||
createRouteFareRule(@Param('routeId') routeId: string, @Body() dto: any) {
|
createRouteFareRule(@Param('routeId') routeId: string, @Body() dto: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user