handle change data in doctor model, set previous data when user close modal, update list doctor after update data and change key name in url
This commit is contained in:
@@ -49,6 +49,13 @@ export const request = {
|
||||
getUserInfo: (headers) => api.get("oauth/userinfo", headers),
|
||||
getInsuranceType: () =>
|
||||
api.get("api/v1/categorys/insurance_type", removeTokenHead),
|
||||
getDoctors: (params) =>
|
||||
api.get("api/v1/doctors", {
|
||||
params,
|
||||
headers: {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
getAppointmentNotAvailable: (doctor_id) =>
|
||||
api.get(`api/v1/appointment/not-available/${doctor_id}`, removeTokenHead),
|
||||
getAppointmentWeeklySchedule: (uuid) =>
|
||||
@@ -77,5 +84,5 @@ export const request = {
|
||||
getDoctorServices: () =>
|
||||
api.get("api/v1/categorys/doctor_services", removeTokenHead),
|
||||
postDoctorComment: (data) => api.post("api/v1/clinicpro/comment", data),
|
||||
postDoctorRate: (data) => api.post("api/v1/clinicpro/rate", data)
|
||||
postDoctorRate: (data) => api.post("api/v1/clinicpro/rate", data),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user