update design and request pages dashboards & doctors & doctor item & clinics & clinic item and layout
This commit is contained in:
+2
-1
@@ -4,10 +4,11 @@ import "react-toastify/dist/ReactToastify.css";
|
||||
|
||||
const BASE_URL = process.env.NEXT_PUBLIC_API_URL;
|
||||
|
||||
const token = Cookies.get("access");
|
||||
const token = Cookies.get("access_token");
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: BASE_URL,
|
||||
"X-CSRF-Token": "",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Authorization: token ? `Bearer ${token}` : "",
|
||||
|
||||
@@ -30,5 +30,7 @@ export const request = {
|
||||
});
|
||||
},
|
||||
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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user