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.

483 B
Raw Blame
import apiClient from './client';

/**
 * GET /api/trips/:tripId/flights/live: the live state of every flight leg of a
 * trip TREK can follow. The answer comes back unparsed; store/flightLiveStore.ts
 * checks it against the shared contract before anything draws it.
 */
export const flightLiveApi = {
  trip: (tripId: number, signal?: AbortSignal): Promise<unknown> =>
    apiClient.get(`/trips/${tripId}/flights/live`, { signal }).then((response) => response.data as unknown),
};