http-tunnel-client/src/sdk.ts
2023-07-11 12:26:38 +07:00

21 lines
358 B
TypeScript

import axios from "axios";
const getTokenFree = async (baseUrl: string, data: any = {}) => {
const url = `${baseUrl}/__free__/api/get_token`;
return axios({
method: "POST",
url: url,
data: {
...data,
},
headers: {
"x-access-type": "FREE",
"Accept-Encoding": "identity",
},
});
};
export {
getTokenFree,
};