create reseller

This commit is contained in:
hamid zarghami
2026-04-18 16:31:49 +03:30
parent f63d4f3c1d
commit 7a5a8cfb1d
8 changed files with 108 additions and 3 deletions
@@ -1,6 +1,12 @@
import axios from "../../../config/axios";
import { CreateResellerType } from "../types/Types";
export const getResellers = async () => {
const { data } = await axios.get(`/reseller`);
return data;
};
export const createReseller = async (params: CreateResellerType) => {
const { data } = await axios.post(`/reseller`, params);
return data;
};