refactor: consolidate exact post dispatch

This commit is contained in:
leefer
2026-08-01 14:02:21 +08:00
parent f75d9555e0
commit 5c7f8e15c9
7 changed files with 185 additions and 87 deletions
+3
View File
@@ -30,6 +30,9 @@ background scheduler
`backend/application.py` and `backend/bootstrap/`.
- `backend/http/` owns common authentication, request IDs, responses, static delivery, and
error normalization. Feature-specific transport handlers live beside their feature.
Exact POST endpoints that only delegate to one of those handlers use the explicit maps in
`backend/application.py`; endpoints with path parameters, body handling, or special error
semantics remain visible control flow in `RequestHandler`.
- `backend/features/<feature>/` owns the mechanically moved service, repository, HTTP, agent,
or deterministic calculation code for that product area.
- `backend/data/` owns provider construction, source policy, provenance, units, freshness,