Update components/productsPage/products.tsx
This commit is contained in:
@@ -17,7 +17,7 @@ export default function Products() {
|
||||
|
||||
useEffect(() => {
|
||||
async function getData() {
|
||||
await axios.get("https://api.serenmebel.uz/api/products/").then((res) => {
|
||||
await axios.get("https://admin.promtechno.uz/api/products/").then((res) => {
|
||||
console.log("all data: ", res?.data);
|
||||
const allData = res?.data || [];
|
||||
setAllProducts(allData);
|
||||
|
||||
Reference in New Issue
Block a user