summaryrefslogtreecommitdiff
path: root/src/lib/product/api/productSearchApi.js
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-02 16:43:25 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-02 16:43:25 +0700
commitb30e6a53d660f9ccbc0ded640c2a1dc5df673ff2 (patch)
treeae840e06b29d9ccdeb88c31b17d1962ebd9f5539 /src/lib/product/api/productSearchApi.js
parent3f384749fe51a2763e7e99351f36ce70954afb7a (diff)
<iman> update fetch data
Diffstat (limited to 'src/lib/product/api/productSearchApi.js')
-rw-r--r--src/lib/product/api/productSearchApi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/product/api/productSearchApi.js b/src/lib/product/api/productSearchApi.js
index 670661aa..8ff8e57d 100644
--- a/src/lib/product/api/productSearchApi.js
+++ b/src/lib/product/api/productSearchApi.js
@@ -3,7 +3,7 @@ import axios from 'axios'
const productSearchApi = async ({ query, operation = 'OR' }) => {
const dataProductSearch = await axios(
- `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/promo?${query}&operation=${operation}`
+ `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?${query}&operation=${operation}`
)
return dataProductSearch.data
}