13 lines
353 B
TypeScript
13 lines
353 B
TypeScript
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;
|
|
};
|