standardize route locations #74

Closed
opened 2026-08-02 01:29:25 +00:00 by amzoeee · 0 comments
amzoeee commented 2026-08-02 01:29:25 +00:00 (Migrated from codeberg.org)

Description

right now routes are scattered across different locations:

  • /me routes are defined in apps/backend/src/index.ts
  • /preferences routes are defined in apps/backend/src/preferences/routes.ts
  • /health routes are defined in apps/backend/src/routes/health.ts

I think it makes sense to make a file for each in the routes folder, and leave index.ts for just other app startup/initialization stuff. I'm not sure what the convention is though :)

Help & Resources

### Description right now routes are scattered across different locations: - `/me` routes are defined in `apps/backend/src/index.ts` - `/preferences` routes are defined in `apps/backend/src/preferences/routes.ts` - `/health` routes are defined in `apps/backend/src/routes/health.ts` I think it makes sense to make a file for each in the `routes` folder, and leave `index.ts` for just other app startup/initialization stuff. I'm not sure what the convention is though :) ### Help & Resources - [README](../../ScottyLabs/housing/src/branch/main/README.md) - [Contributing Guidelines](../../ScottyLabs/housing/src/branch/main/docs/CONTRIBUTING.md)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/housing#74
No description provided.