web-humas-fe/service/subscribe.ts

18 lines
388 B
TypeScript

import {
httpDeleteInterceptor,
httpGet,
httpPost,
httpPut,
} from "./http-config/axios-base-service";
import Cookies from "js-cookie";
const token = Cookies.get("access_token");
export async function subscription(data: any) {
const headers = {
"content-type": "application/json",
};
const pathUrl = `/subscription`;
return await httpPost(pathUrl, headers, data);
}