Conectando frontend y backend

This commit is contained in:
Tatiana Villa Ema 2026-04-29 19:42:27 +02:00
parent fdb3e8bb8d
commit 71ccf9b868
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,7 @@ async function difuntos() {
================================ */
async function santoDelDia() {
console.log("Inicio: Actualizando santo:", data.santo, santoDelDiaElem);
try {
const res = await apiCall('/santo/hoy');
if (!res || !res.ok) {
@ -157,6 +158,7 @@ async function santoDelDia() {
} catch (e) {
console.error("Error obteniendo el santo del día desde la API:", e);
}
console.log("Fin: Actualizando santo:", data.santo, santoDelDiaElem);
}