mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The route was exempt from the published contract as a browser handoff. It is not one: Nightscout has no OAuth step and no authorise page, and the route is an authenticated JSON POST that Zod-parses a URL and an optional token, probes the instance and encrypts the pair onto the row. It was the only POST among eight `connect` exemptions, and its three siblings — status, test, disconnect — have been published all along, so a client could read every part of the Nightscout flow except the one that starts it. Register it from `nightscoutConnectSchema` so the request shape stays single-source, document the 400 / 413 / 422 / 429 arms the handler actually answers with, and drop the exemption. Removing the registration now fails the coverage guard by name.
2.4 MiB
2.4 MiB