summaryrefslogtreecommitdiff
path: root/src/lib/home
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-01-04 03:07:56 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-01-04 03:07:56 +0000
commit0d33de3744f612262c12d648cd7147a2ef238a36 (patch)
tree285af0ed69169621228e252affdac958f016dab2 /src/lib/home
parentbb8ee26d89842b4f9b99b48f2a7cc464c6ecc4ee (diff)
parent67398e6f10d6f7729d8f1ace7005ef13d32c5ddd (diff)
Merged in Feature/promotion-program (pull request #124)
Feature/promotion program
Diffstat (limited to 'src/lib/home')
-rw-r--r--src/lib/home/api/categoryHomeApi.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/home/api/categoryHomeApi.js b/src/lib/home/api/categoryHomeApi.js
index 9e7d1402..e5def608 100644
--- a/src/lib/home/api/categoryHomeApi.js
+++ b/src/lib/home/api/categoryHomeApi.js
@@ -1,11 +1,10 @@
-import odooApi from '@/core/api/odooApi'
-import axios from 'axios'
+import axios from 'axios';
const categoryHomeIdApi = async ({ id }) => {
- // const dataCategoryHomeIdO = await odooApi('GET', `/api/v1/product/category-homepage?id=${id}`)
- // console.log('ini adalah odoo', dataCategoryHomeIdO)
- const dataCategoryHomeId = await axios(`${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/product-homepage?id=` + id)
- return dataCategoryHomeId.data
-}
+ const dataCategoryHomeId = await axios(
+ `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/product-homepage?id=` + id
+ );
+ return dataCategoryHomeId.data;
+};
-export default categoryHomeIdApi
+export default categoryHomeIdApi;