Skip to content

[Backend] Remove dead unauthenticated legacy SSE route file routes/events.routes.ts #508

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

backend/src/routes/events.routes.ts (the non-v1 legacy SSE router) is dead code — nothing imports it (app.ts mounts only routes/v1/index.js and replaces /events with a 410 deprecation stub). Worse, its /subscribe handler mounts subscribe without requireAuth, unlike the live routes/v1/events.routes.ts which guards it. Leaving an unauthenticated SSE subscribe handler lying around is a foot-gun: a future re-mount would silently expose it.

Acceptance criteria

  • Confirm no import references routes/events.routes.ts (it currently has none).
  • Delete backend/src/routes/events.routes.ts.
  • Backend builds and tests pass.

Files to touch

  • backend/src/routes/events.routes.ts (delete)

Out of scope

  • The active routes/v1/events.routes.ts; the deprecated /events 410 stub in app.ts.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related tasksgood first issueGood for newcomersrefactorRefactoring existing code

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