- Remove unnecessary null-coalesce on request.nextUrl.search
- Fix body typing: use null instead of undefined for no-body requests
- Use conditional spread to satisfy fetch() overload types
- Auto-fix prettier formatting across all changed files
The Mission Control components were calling /api/mission-control/* which
routes to mosaic-api.woltje.com (the main API) — those routes don't exist
there, causing 404s.
These routes live on the orchestrator service and must go through the
Next.js server-side proxy (which injects ORCHESTRATOR_API_KEY):
Changes:
- Add catch-all proxy route at /api/orchestrator/[...path]/route.ts
Forwards any GET/POST/PATCH/PUT/DELETE to ORCHESTRATOR_URL/<path>
Replaces the need for per-endpoint proxy files for new routes.
- Update all Mission Control components to call
/api/orchestrator/api/mission-control/* instead of /api/mission-control/*
- Update test expectations to match new paths