mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 15:06:32 +00:00
f1c437b8b8
The admin switch for wanderer moves to api/wanderer.ts and the recorded track restore to api/recordedTrack.ts; trips.service.ts keeps dev's formatting with only the derived-from remap on copy.
9 lines
412 B
TypeScript
9 lines
412 B
TypeScript
import type { TourDetailResponse } from '@trek/shared';
|
|
import apiClient from './client';
|
|
|
|
/** An import that was planned over in place keeps its recorded track; this brings it back. */
|
|
export const recordedTrackApi = {
|
|
restore: (tripId: number | string, placeId: number | string): Promise<TourDetailResponse> =>
|
|
apiClient.post(`/trips/${tripId}/tours/${placeId}/restore-recorded`).then((r) => r.data),
|
|
};
|