feat: fixing login
This commit is contained in:
parent
bcbdafa8c6
commit
f716962438
|
|
@ -42,20 +42,13 @@ export async function deleteMasterUser(id: string) {
|
|||
}
|
||||
|
||||
export async function postSignIn(data: any) {
|
||||
const headers = {
|
||||
accept: "application/json",
|
||||
"content-type": "application/json",
|
||||
};
|
||||
const pathUrl = `/users/login`;
|
||||
return await httpPost(pathUrl, headers, data);
|
||||
return await httpPost(pathUrl, data);
|
||||
}
|
||||
|
||||
export async function getProfile(code?: string) {
|
||||
const headers = {
|
||||
"content-type": "application/json",
|
||||
Authorization: `Bearer ${code || token}`,
|
||||
};
|
||||
return await httpGet(`/users/info`, headers);
|
||||
const pathUrl = `/users/info`;
|
||||
return await httpGet(pathUrl);
|
||||
}
|
||||
|
||||
export async function updateProfile(data: any) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue