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:
hamed
2026-06-16 22:27:39 +03:30
co-authored by Claude Opus 4.8
parent 69e591f03e
commit 344285dce5
4 changed files with 130 additions and 9 deletions
+5
View File
@@ -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: () =>