diff --git a/frontend/js/codigo.js b/frontend/js/codigo.js index cbdcc33..265a273 100644 --- a/frontend/js/codigo.js +++ b/frontend/js/codigo.js @@ -234,7 +234,7 @@ async function cargarYActualizarTodo() { } try { - const respuesta = await fetch(`${API_BASE_URL}/calendario/hoy`); + const respuesta = await fetch(`${API_BASE}/calendario/hoy`); if (!respuesta.ok) throw new Error("Sin datos litúrgicos"); const datosHoy = await respuesta.json(); diff --git a/frontend/js/header.js b/frontend/js/header.js index 16221fb..78a9aa6 100644 --- a/frontend/js/header.js +++ b/frontend/js/header.js @@ -61,7 +61,7 @@ async function cargarYActualizarTodo() { nombreCicloElem.textContent = ciclo === 0 ? "Ciclo C -" : ciclo === 1 ? "Ciclo A -" : "Ciclo B -"; try { - const respuesta = await fetch(`${API_BASE_URL}/calendario/hoy`); + const respuesta = await fetch(`${API_BASE}/calendario/hoy`); if (!respuesta.ok) throw new Error("Sin datos litúrgicos"); const datosHoy = await respuesta.json();