Conectando frontend y backend
This commit is contained in:
parent
04960902d3
commit
fdb3e8bb8d
|
|
@ -153,6 +153,7 @@ async function santoDelDia() {
|
|||
const data = await res.json();
|
||||
santoDelDiaElem.textContent = data.santo || "";
|
||||
descripcionSantoDelDiaElem.textContent = data.descripcion || "";
|
||||
console.log("Santo del día:", data.santo);
|
||||
} catch (e) {
|
||||
console.error("Error obteniendo el santo del día desde la API:", e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue