18 lines
484 B
TypeScript
18 lines
484 B
TypeScript
import { httpGet, httpPost } from "./http-config/http-base-service";
|
|
import {
|
|
httpGetInterceptorWithToken,
|
|
} from "./http-config/http-interceptor-service";
|
|
|
|
export async function login(data: any) {
|
|
const pathUrl = `signin`;
|
|
const headers = {
|
|
"content-type": "application/json",
|
|
};
|
|
return await httpPost(pathUrl, data, headers);
|
|
}
|
|
|
|
export async function userInfo(token: any) {
|
|
const pathUrl = `users/info`;
|
|
return await httpGetInterceptorWithToken(pathUrl, token);
|
|
}
|