web-humas-fe/services/subscribe.ts

18 lines
388 B
TypeScript
Raw Permalink Normal View History

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);
}