This commit is contained in:
Philippe Torrel
2026-07-23 09:10:13 +02:00
parent 261b0e8c62
commit ad296423bc
20 changed files with 1642 additions and 275 deletions

View File

@@ -5256,7 +5256,7 @@
};
const fetchProducts = async () => {
try {
const response = await fetch("/data/products.json");
const response = await fetch("http://127.0.0.1:8000/api/products");
if (!response.ok) {
throw new Error("Fetch went wrong.");
}