feat(appointment): add getMonthAvailability request wrapper
Public wrapper for GET /api/v1/appointment-settings/month-availability
/{doctor_uuid}?year=&month= so the calendar can learn which days are
bookable.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -64,6 +64,11 @@ export const request = {
|
||||
`api/v1/appointment-slots?doctor_uuid=${doctor_uuid}&date=${date}`,
|
||||
removeTokenHead
|
||||
),
|
||||
getMonthAvailability: (doctor_uuid, year, month) =>
|
||||
api.get(`api/v1/appointment-settings/month-availability/${doctor_uuid}`, {
|
||||
params: { year, month },
|
||||
...removeTokenHead,
|
||||
}),
|
||||
postAppointment: (data) => api.post(`api/v1/appointment`, data, { requireAuth: true }),
|
||||
getMyAppointments: (userId, params) => api.get(`api/v1/appointment/my-appointments/${userId}`, { params, requireAuth: true }),
|
||||
postAppointmentPayment: (data) =>
|
||||
|
||||
Reference in New Issue
Block a user