You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix discovery API endpoint routing and protocol consistency.
15
+
16
+
**Discovery route standardization:**
17
+
- All adapters (Express, Fastify, Hono, NestJS, Next.js, Nuxt, SvelteKit) now mount the discovery endpoint at `{prefix}/discovery` instead of `{prefix}` root.
18
+
-`.well-known/objectstack` redirects now point to `{prefix}/discovery`.
19
+
- Client `connect()` fallback URL changed from `/api/v1` to `/api/v1/discovery`.
20
+
- Runtime dispatcher handles both `/discovery` (standard) and `/` (legacy) for backward compatibility.
21
+
22
+
**Schema & route alignment:**
23
+
- Added `storage` (service: `file-storage`) and `feed` (service: `data`) routes to `DEFAULT_DISPATCHER_ROUTES`.
24
+
- Added `feed` and `discovery` fields to `ApiRoutesSchema`.
25
+
- Unified `GetDiscoveryResponseSchema` with `DiscoverySchema` as single source of truth.
26
+
- Client `getRoute('feed')` fallback updated from `/api/v1/data` to `/api/v1/feed`.
27
+
28
+
**Type safety:**
29
+
- Extracted `ApiRouteType` from `ApiRoutes` keys for type-safe client route resolution.
30
+
- Removed `as any` type casting in client route access.
0 commit comments