change function and design page doctors & signin & signup & home & specialties & helper

This commit is contained in:
Ehsan
2025-05-21 16:44:34 +03:30
parent c8c217e286
commit 6c7709c342
13 changed files with 96 additions and 86 deletions
+18 -1
View File
@@ -1,5 +1,22 @@
import api from "./api";
import Cookies from "universal-cookie";
export const request = {
auth: (phone) => api.post("sign-up/", { phone }),
auth: (grant_type, client_id, client_secret, username, password) =>
api.post(
"oauth/token",
{
grant_type,
client_id,
client_secret,
username,
password,
},
{
headers: {
Authorization: "",
"Content-Type": "application/x-www-form-urlencoded",
},
}
),
};