redirect filter data to doctors page from home page just with one key && add picture url to doctors page && add conditional to appo page and change data in server

This commit is contained in:
Ehsan
2025-09-02 00:32:04 +03:30
parent 1e70d88a84
commit 6920e4078b
9 changed files with 96 additions and 52 deletions
+9 -5
View File
@@ -37,11 +37,15 @@ 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, {
headers: {
Authorization: `Bearer ${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),