change function and design page doctors & signin & signup & home & specialties & helper
This commit is contained in:
+18
-1
@@ -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",
|
||||
},
|
||||
}
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user