feat(specialties): show per-city doctor count on /specialties
Fetch active specialties with number_of_doctors from GET /api/v1/specialties/doctor-counts (scoped to the current city via matchedCity.id) instead of the static specialties.json, so each specialty card shows the real doctor count. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,11 @@ export const request = {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
getSpecialtyDoctorCounts: (cityId) =>
|
||||
api.get("api/v1/specialties/doctor-counts", {
|
||||
params: cityId ? { city_id: cityId } : {},
|
||||
headers: { Authorization: "" },
|
||||
}),
|
||||
getAppointmentWeeklySchedule: (uuid) =>
|
||||
api.get(`api/v1/appointment-settings/weekly-schedule/${uuid}`),
|
||||
postAppointmentWeeklySchedule: () =>
|
||||
|
||||
Reference in New Issue
Block a user