brewlog/src/application/routes
Jon Seager b3c13faacf
fix(api): make all roast and bag endpoints return enriched types
Previously, list endpoints returned enriched types (RoastWithRoaster,
BagWithRoast) with related entity names, while get/create/update
endpoints returned bare types without this information.

This change makes all endpoints consistent by returning enriched types:
- Added get_with_roaster and get_with_roast repository methods
- Created define_enriched_get_handler! macro for custom getter methods
- Updated create and update handlers to fetch enriched data after write
- Updated CLI client to expect enriched types
2026-02-02 16:43:31 +00:00
..
auth.rs feat: improved trace logging 2025-11-26 12:01:53 +00:00
bags.rs fix(api): make all roast and bag endpoints return enriched types 2026-02-02 16:43:31 +00:00
gear.rs refactor(gear): remove notes field from Gear entity 2026-02-02 16:16:54 +00:00
macros.rs fix(api): make all roast and bag endpoints return enriched types 2026-02-02 16:43:31 +00:00
mod.rs feat(application): add Gear API routes and web handlers 2026-02-02 15:21:26 +00:00
roasters.rs refactor(routes): re-export is_authenticated for shorter imports 2026-02-02 14:32:30 +00:00
roasts.rs fix(api): make all roast and bag endpoints return enriched types 2026-02-02 16:43:31 +00:00
support.rs fix: remove superfluous /bags/:id/finish endpoint 2025-11-27 14:24:26 +00:00
timeline.rs refactor(routes): re-export is_authenticated for shorter imports 2026-02-02 14:32:30 +00:00
tokens.rs feat: improved trace logging 2025-11-26 12:01:53 +00:00