diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-01 13:57:44 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-01 13:57:44 +0700 |
| commit | af4b52190ad32890b246add65248281a4c94cef3 (patch) | |
| tree | c4448b38fb244dd6ad8e16a510ca732e1ee7c7e6 /src/api | |
| parent | 778dcf944561e74cb915d41aff810c3f433daa43 (diff) | |
Add price from filter on popular product API
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/productApi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/productApi.js b/src/api/productApi.js index feb91257..009d95ef 100644 --- a/src/api/productApi.js +++ b/src/api/productApi.js @@ -3,7 +3,7 @@ import axios from 'axios' export const popularProductApi = () => { return async () => { const dataPopularProducts = await axios( - `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?q=*&page=1&orderBy=popular-weekly` + `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/search?q=*&page=1&orderBy=popular-weekly&priceFrom=1` ) return dataPopularProducts.data.response } |
