Join the contributor Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
/api/v1 is the documented versioned namespace but only mounts simulation, score, loans, indexer, admin, auth, remittances. The pool, notifications, and events routers are only available under the legacy /api prefix. Frontend code that adopts /api/v1 consistently currently gets 404s for these surfaces, which makes the version promise meaningless.
Acceptance criteria
Files to touch
backend/src/app.ts
backend/src/__tests__/loanEndpoints.test.ts (or a new apiV1Mounts.test.ts)
Out of scope
- Removing legacy
/api/* mounts.
- Updating frontend to use
/api/v1 (separate follow-up).
Join the contributor Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
/api/v1is the documented versioned namespace but only mountssimulation,score,loans,indexer,admin,auth,remittances. Thepool,notifications, andeventsrouters are only available under the legacy/apiprefix. Frontend code that adopts/api/v1consistently currently gets 404s for these surfaces, which makes the version promise meaningless.Acceptance criteria
poolRoutesat/api/v1/poolinapp.ts.notificationsRoutesat/api/v1/notificationsinapp.ts.eventRoutesat/api/v1/eventsinapp.ts./api/v1and expects 200/2xx with valid auth headers./api/*mounts unchanged for backwards compatibility.Files to touch
backend/src/app.tsbackend/src/__tests__/loanEndpoints.test.ts(or a newapiV1Mounts.test.ts)Out of scope
/api/*mounts./api/v1(separate follow-up).