feat: update fixing service auth
This commit is contained in:
parent
831c79e39e
commit
626aac592a
|
|
@ -1,3 +1,4 @@
|
|||
import qs from "qs";
|
||||
import { getAPIDummy } from "./http-config/axiosCustom";
|
||||
import { httpPost } from "./http-config/http-base-service";
|
||||
import {
|
||||
|
|
@ -8,7 +9,11 @@ import {
|
|||
|
||||
export async function login(data: any) {
|
||||
const pathUrl = "signin";
|
||||
return httpPost(pathUrl, data);
|
||||
const headers = {
|
||||
'content-type': 'application/x-www-form-urlencoded',
|
||||
};
|
||||
return httpPost(pathUrl, headers, qs.stringify(data));
|
||||
|
||||
}
|
||||
|
||||
export async function getProfile(token: any) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue