This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user