refactor: enhance appointment flow by adding selected slot and date management across components
This commit is contained in:
+7
-15
@@ -35,21 +35,13 @@ export const request = {
|
||||
},
|
||||
});
|
||||
},
|
||||
getUserProfile: (uuid) => api.get(`/api/v1/user-profile/${uuid}`),
|
||||
postUserProfile: (data) => api.post("api/v1/user-profile", data),
|
||||
patchUserProfile: (data, uuid, token) =>
|
||||
api.patch(
|
||||
`api/v1/user-profile/${uuid}`,
|
||||
data,
|
||||
token && {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
}
|
||||
),
|
||||
getUserInfo: (headers) => api.get("oauth/userinfo", headers),
|
||||
getInsuranceType: () =>
|
||||
api.get("api/v1/categorys/insurance_type", removeTokenHead),
|
||||
getUserProfile: (uuid) => api.get(`/api/v1/user-profile/${uuid}`, { requireAuth: true }),
|
||||
postUserProfile: (data) => api.post("api/v1/user-profile", data, { requireAuth: true }),
|
||||
patchUserProfile: (data, uuid) =>
|
||||
api.patch(`api/v1/user-profile/${uuid}`, data, { requireAuth: true }),
|
||||
getUserInfo: (headers) => api.get("oauth/userinfo", { ...headers, requireAuth: true }),
|
||||
getInsuranceType: (page = 1, limit = 10) =>
|
||||
api.get(`api/v1/categorys/insurance_type?page=${page}&limit=${limit}`, removeTokenHead),
|
||||
getDoctors: (params) =>
|
||||
api.get("api/v1/doctors", {
|
||||
params,
|
||||
|
||||
Reference in New Issue
Block a user