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.

507 B
Raw Blame
import { http, HttpResponse } from 'msw';

/**
 * The routing relay to the TREK services' Valhalla, answered the way a server
 * without an installation key answers it: 503, so the planner turns to the
 * public Valhalla as it does there. A test about the relay overrides this
 * with server.use().
 */
export const routingHandlers = [
  http.post('/api/routing/valhalla/:action', () =>
    HttpResponse.json({ error: 'The TREK routing service is not available on this instance' }, { status: 503 })
  ),
];