Skip to content

[Backend] Mount pool, notifications, and events routers under /api/v1 #872

@ogazboiz

Description

@ogazboiz

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

  • Mount poolRoutes at /api/v1/pool in app.ts.
  • Mount notificationsRoutes at /api/v1/notifications in app.ts.
  • Mount eventRoutes at /api/v1/events in app.ts.
  • Add an integration test that hits one endpoint from each newly mounted router under /api/v1 and expects 200/2xx with valid auth headers.
  • Keep the legacy /api/* mounts unchanged for backwards compatibility.

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).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendIssues related to backend developmentgood first issueGood for newcomers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions