mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
GET /api/measurements keeps authentication and the query refusal and hands the validated query to measurementListResponse (lib/measurements/list), which tries the list modes in their old order. POST keeps authentication, the body, the bridge-source refusal and the three validation answers; the single and combined writes with their shared tail move to lib/measurements/create/create-readings.ts, the named sleep-stage write to create-sleep-stage.ts. The route falls from 938 to 274 lines. The parity walk recorded before the move is unchanged; the guards that name the measurement writers, the write tail and the bounded reads follow the code.