We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 480fd47 commit b6e7a40Copy full SHA for b6e7a40
js/index.js
@@ -3,7 +3,7 @@ document.addEventListener('DOMContentLoaded', async function () {
3
try {
4
async function consumirApiProductos() {
5
6
- const respuesta = await fetch('./productos.json');
+ const respuesta = await fetch('./js/productos.json');
7
const datos = await respuesta.json();
8
return datos;
9
} catch (error) {
@@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', async function () {
14
15
async function consumirApiProductosCarrete() {
16
17
- const respuesta = await fetch('./productosCarrete.json');
+ const respuesta = await fetch('./js/productosCarrete.json');
18
19
20
0 commit comments