feat: fixing login

This commit is contained in:
hanif salafi 2025-07-03 23:50:28 +07:00
parent bcbdafa8c6
commit f716962438
1 changed files with 3 additions and 10 deletions

View File

@ -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) {