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 { getAPIDummy } from "./http-config/axiosCustom";
|
||||||
import { httpPost } from "./http-config/http-base-service";
|
import { httpPost } from "./http-config/http-base-service";
|
||||||
import {
|
import {
|
||||||
|
|
@ -8,7 +9,11 @@ import {
|
||||||
|
|
||||||
export async function login(data: any) {
|
export async function login(data: any) {
|
||||||
const pathUrl = "signin";
|
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) {
|
export async function getProfile(token: any) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue