blob: 4c4f96ba4c9a907aeb0c1012e8e625e0253f8204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import odooApi from '@/core/api/odooApi';
import { getAuth } from '@/core/utils/auth';
const createMerchantApi = async ({ data }) => {
const auth = getAuth();
const lead = await odooApi(
'POST',
`/api/v1/merchant/${auth.partnerId}`,
data
);
return lead;
};
export default createMerchantApi;
|