mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
refactor(targets): extract the insights-targets builder into lib
The targets route held a ~1.4k-line domain function in the handler body. Move buildTargetsResponse into src/lib/targets/build-response so it sits beside the other targets helpers and can be unit-tested without the route shell; the route is now auth -> cachedSwr(buildTargetsResponse) -> apiSuccess. Follow the as-needed compliance source pin to the new file location.
This commit is contained in:
1 parent
075dae9ace
commit
0af1fbb9d4
3 files changed
+1566
-1542
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user