mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
The route keeps authentication, the body, the base token, the layout schema (the inline-schema inventory reads it there), the conflict mapping and the responses. The rest moves verbatim into lib/dashboard/widgets/, one module per stage: the layout read and the availability probe for GET, the unknown-id drop, the refusal report and the stored-field merge for PUT, and the locked reset for DELETE. The route is 317 lines, down from 513; its longest function is 85 lines, down from 199. The parity walk recorded before the move (dashboard-widgets.parity) is unchanged. The tombstone-read guard now also scopes lib/dashboard/widgets/, so the moved HRV probes stay policed.