Skip to content

Commit b6e7a40

Browse files
authored
Update index.js
1 parent 480fd47 commit b6e7a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ document.addEventListener('DOMContentLoaded', async function () {
33
try {
44
async function consumirApiProductos() {
55
try {
6-
const respuesta = await fetch('./productos.json');
6+
const respuesta = await fetch('./js/productos.json');
77
const datos = await respuesta.json();
88
return datos;
99
} catch (error) {
@@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', async function () {
1414

1515
async function consumirApiProductosCarrete() {
1616
try {
17-
const respuesta = await fetch('./productosCarrete.json');
17+
const respuesta = await fetch('./js/productosCarrete.json');
1818
const datos = await respuesta.json();
1919
return datos;
2020
} catch (error) {

0 commit comments

Comments
 (0)