diff options
| author | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-26 12:37:08 +0700 |
|---|---|---|
| committer | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-26 12:37:08 +0700 |
| commit | 2102158d77211991673aa7ed7cfacda69cceda2e (patch) | |
| tree | c788fe583c25d172df93841f403389d01d9198dd /src/lib/merchant/api/createMerchantApi.js | |
| parent | ca05a70e98e9066882de6394ffbd89db7af2cb9d (diff) | |
| parent | 4ef92b4d9fea4fdd636d62194514b33ed3b3c387 (diff) | |
(andri) resolve conflict
Diffstat (limited to 'src/lib/merchant/api/createMerchantApi.js')
| -rw-r--r-- | src/lib/merchant/api/createMerchantApi.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/merchant/api/createMerchantApi.js b/src/lib/merchant/api/createMerchantApi.js new file mode 100644 index 00000000..4c4f96ba --- /dev/null +++ b/src/lib/merchant/api/createMerchantApi.js @@ -0,0 +1,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; |
