From d83f10536d565310e0f1f78298d04eaff2e7d057 Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Mon, 27 Apr 2026 22:41:45 +0200 Subject: [PATCH] fix: usar API_BASE (no API_BASE_URL) en header.js y codigo.js --- frontend/js/codigo.js | 2 +- frontend/js/header.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();