mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 03:40:56 +00:00
Backoffice UAT results addressed, packages and other updates
This commit is contained in:
@@ -153,6 +153,15 @@ export class FleetController {
|
||||
return this.service.deleteTrain(id);
|
||||
}
|
||||
|
||||
@Patch('trains/:id/restore')
|
||||
@ApiOperation({ summary: 'Restore (reactivate) a deactivated train' })
|
||||
@ApiParam({ name: 'id', description: 'Train UUID' })
|
||||
@ApiResponse({ status: 200, description: 'Train restored' })
|
||||
@ApiResponse({ status: 404, description: 'Train not found' })
|
||||
restoreTrain(@Param('id') id: string) {
|
||||
return this.service.restoreTrain(id);
|
||||
}
|
||||
|
||||
// Coach Endpoints
|
||||
@Get('coaches')
|
||||
@ApiOperation({ summary: 'List coaches with seat status summary' })
|
||||
|
||||
Reference in New Issue
Block a user