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 95458ee commit fcfa401Copy full SHA for fcfa401
js/index.js
@@ -2,7 +2,7 @@ document.addEventListener('DOMContentLoaded', async function () {
2
3
async function consumirApiProductos() {
4
try {
5
- const respuesta = await fetch('../js/productos.json');
+ const respuesta = await fetch('./js/productos.json');
6
const datos = await respuesta.json();
7
return datos;
8
} catch (error) {
@@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', async function () {
12
13
async function consumirApiProductosCarrete() {
14
15
- const respuesta = await fetch('../js/productosCarrete.json');
+ const respuesta = await fetch('.gt/js/productosCarrete.json');
16
17
18
0 commit comments