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) {
|
export async function postSignIn(data: any) {
|
||||||
const headers = {
|
|
||||||
accept: "application/json",
|
|
||||||
"content-type": "application/json",
|
|
||||||
};
|
|
||||||
const pathUrl = `/users/login`;
|
const pathUrl = `/users/login`;
|
||||||
return await httpPost(pathUrl, headers, data);
|
return await httpPost(pathUrl, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getProfile(code?: string) {
|
export async function getProfile(code?: string) {
|
||||||
const headers = {
|
const pathUrl = `/users/info`;
|
||||||
"content-type": "application/json",
|
return await httpGet(pathUrl);
|
||||||
Authorization: `Bearer ${code || token}`,
|
|
||||||
};
|
|
||||||
return await httpGet(`/users/info`, headers);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function updateProfile(data: any) {
|
export async function updateProfile(data: any) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue