change fields component & handle edit, delete, add data and save & change functional page doctor
This commit is contained in:
+22
-2
@@ -29,10 +29,22 @@ export const request = {
|
||||
},
|
||||
});
|
||||
},
|
||||
postRefreshToken: (formData) => {
|
||||
return api.post("oauth/token", formData, {
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
Authorization: "",
|
||||
},
|
||||
});
|
||||
},
|
||||
getUserProfile: (uuid) => api.get(`/api/v1/user-profile/${uuid}`),
|
||||
postUserProfile: (data) => api.post("api/v1/user-profile", data),
|
||||
patchUserProfile: (data, uuid) =>
|
||||
api.patch(`api/v1/user-profile/${uuid}`, data),
|
||||
patchUserProfile: (data, uuid, token) =>
|
||||
api.patch(`api/v1/user-profile/${uuid}`, data, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
}),
|
||||
getUserInfo: (headers) => api.get("oauth/userinfo", headers),
|
||||
getInsuranceType: () =>
|
||||
api.get("api/v1/categorys/insurance_type", {
|
||||
@@ -40,4 +52,12 @@ export const request = {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
getAppointmentWeeklySchedule: (uuid) =>
|
||||
api.get(`api/v1/appointment-settings/weekly-schedule/${uuid}`),
|
||||
postAppointmentWeeklySchedule: () =>
|
||||
api.post("api/v1/appointment-settings/weekly-schedule/"),
|
||||
patchAppointmentWeeklySchedule: (uuid) =>
|
||||
api.patch(`api/v1/appointment-settings/weekly-schedule/${uuid}`),
|
||||
deleteAppointmentWeeklySchedule: (uuid) =>
|
||||
api.delete(`api/v1/appointment-settings/weekly-schedule/${uuid}`),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user