integrated direct api calls

This commit is contained in:
Azmat Ali
2026-03-11 17:00:07 +05:30
parent e63dd0cc36
commit 1df4c26a49
4 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -156,6 +156,7 @@
<div id="footer-placeholder"></div>
<script src="assets/js/config.js"></script>
<script src="assets/js/components.js"></script>
<script src="assets/js/cart.js"></script>
@@ -172,7 +173,7 @@
const cart = Cart.getCart();
const res = await fetch("/.netlify/functions/cart", {
const res = await fetch(`${CONFIG.API_BASE_URL}/cart`, {
method: "POST",
headers: {
"Content-Type": "application/json",