fix(security): make appointment-booking-locations publicly accessible
The new booking-locations endpoint is consumed by the public site without a token, but it was missing from both the public_endpoints firewall pattern and access_control, so every call returned 401 ERR_AUTH_001. Verified against the dev data: the endpoint now returns both contexts for the test doctor (clinic in service mode, personal practice in slot mode), ordered by earliest free slot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -717,7 +717,8 @@ On `POST /api/v1/appointment`, any `service_item_uuids` must belong to the same
|
||||
|
||||
### GET `/api/v1/appointment-booking-locations/{doctorUuid}`
|
||||
|
||||
**Permission:** public.
|
||||
**Permission:** public — whitelisted in `config/packages/security.yaml` (both the
|
||||
`public_endpoints` firewall pattern and an `access_control` entry).
|
||||
|
||||
Lists every place the doctor can be booked at. The site should show **all** of them, grouped by
|
||||
location — picking one and hiding the rest removes real capacity from the doctor.
|
||||
|
||||
Reference in New Issue
Block a user