fix: usar API_BASE (no API_BASE_URL) en header.js y codigo.js

This commit is contained in:
Tatiana Villa Ema 2026-04-27 22:41:45 +02:00
parent 99770d952a
commit d83f10536d
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();