support plan

This commit is contained in:
hamid zarghami
2025-05-05 16:59:48 +03:30
parent b945ffb0a3
commit f45273fc96
25 changed files with 552 additions and 9 deletions
@@ -0,0 +1,11 @@
import axios from "../../../config/axios";
export const getSupportPlans = async () => {
const { data } = await axios.get("/support-plans");
return data;
};
export const buySupportPlan = async (planId: string) => {
const { data } = await axios.post(`/support-plans/${planId}/subscribe`);
return data;
};