fix: usar API_BASE (no API_BASE_URL) en header.js y codigo.js
This commit is contained in:
parent
99770d952a
commit
d83f10536d
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue