Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

412 B
Raw Blame
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),
};