Skip to content

[Backend] Remove dead, unauthenticated top-level routes/stream.routes.ts #536

Description

@ogazboiz

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

Why this matters

backend/src/routes/stream.routes.ts exports a router that mounts only POST /createStream with no auth and no rate limiting. It is not imported anywhere: the active stream router is backend/src/routes/v1/stream.routes.ts (mounted via routes/v1/streams/index.ts, which imports '../stream.routes.js' resolving to the v1 file). A grep for routes/stream.routes shows zero importers of the top-level file.

Leaving a second, unauthenticated createStream route definition lying around is a maintenance hazard — a future refactor could accidentally wire it up and expose stream creation without auth.

Acceptance criteria

  • Verify backend/src/routes/stream.routes.ts (top-level) has no importers
  • Delete the file
  • npm run build and the test suite still pass

Files to touch

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

Out of scope

  • The active backend/src/routes/v1/stream.routes.ts.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions