mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 17:45:42 +00:00
Updated the passenger web portal and added more endpoints to the api
This commit is contained in:
@@ -111,6 +111,10 @@ export const schedulesApi = {
|
||||
|
||||
// Seats API
|
||||
export const seatsApi = {
|
||||
getSeatMap: (scheduleId: string, coachId?: string) => {
|
||||
const params = coachId ? `?coachId=${coachId}` : '';
|
||||
return apiClient.get<any>(`/seats/seatmap/${scheduleId}${params}`);
|
||||
},
|
||||
getBySchedule: (scheduleId: string) => apiClient.get<any>(`/seats/schedule/${scheduleId}`),
|
||||
hold: (data: any) => apiClient.post<any>('/seats/hold', data),
|
||||
release: (holdId: string) => apiClient.delete(`/seats/hold/${holdId}`),
|
||||
|
||||
Reference in New Issue
Block a user