Conectando frontend y backend
This commit is contained in:
parent
fdb3e8bb8d
commit
71ccf9b868
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue