refactor: introduce Server struct, split seed, DRY helpers #1

Merged
lucas merged 2 commits from refactor/server-struct into main 2026-05-01 21:14:14 +02:00
Owner
  • Replace closure-based handlers with methods on a *Server struct
  • Centralise parseParamInt and APIError in helpers.go
  • Split seed data into internal/db/seed.go so db.go concerns are separated
  • No behavioural changes — pure structural cleanup to reduce future token/context costs when adding new entities.
- Replace closure-based handlers with methods on a `*Server` struct - Centralise `parseParamInt` and `APIError` in helpers.go - Split seed data into `internal/db/seed.go` so `db.go` concerns are separated - No behavioural changes — pure structural cleanup to reduce future token/context costs when adding new entities.
- Replace closure-based handlers with methods on a *Server struct
- Centralise parseParamInt and APIError in helpers.go
- Split seed data into internal/db/seed.go so db.go concerns are separated
- No behavioural changes
lucas force-pushed refactor/server-struct from d8a4671c6c to daf2c7797a 2026-05-01 21:13:57 +02:00 Compare
lucas merged commit daf2c7797a into main 2026-05-01 21:14:14 +02:00
Sign in to join this conversation.
No reviewers
No labels
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
lucas/vibeconfigtool!1
No description provided.