API Reference
All API routes are under /api/.
| Route | Method | Auth | Description |
|---|---|---|---|
/api/gpx | GET | None | GPX file proxy with host allowlist |
/api/analytics | POST | None | Record analytics event to Supabase |
/api/analytics | GET | None | Get view/download/share counters |
/api/analytics/dashboard | GET | Password | Dashboard data via PostHog HogQL |
/api/analytics/sessions | GET | Password | PostHog session recordings |
/api/analytics/ip-check | GET | None | Internal user detection |