diff --git a/seta_menu/cercaorario/js/cercafermata.js b/seta_menu/cercaorario/js/cercafermata.js index 4d28fa3..d08dba2 100644 --- a/seta_menu/cercaorario/js/cercafermata.js +++ b/seta_menu/cercaorario/js/cercafermata.js @@ -7,6 +7,7 @@ window.onbeforeunload=searchBar.value=""; window.onbeforeunload=stopCodeBar.value=""; const url = 'https://setaapi.serverissimo.freeddns.org/stoplist'; +//const url='http://localhost:5001/stoplist'; fetch(url) .then(response => { if (!response.ok) throw new Error("Errore nel caricamento dei dati."); diff --git a/seta_menu/cercaorario/js/fermata.js b/seta_menu/cercaorario/js/fermata.js index db46080..bd3d949 100644 --- a/seta_menu/cercaorario/js/fermata.js +++ b/seta_menu/cercaorario/js/fermata.js @@ -7,6 +7,7 @@ const fermata_span = document.getElementById('fermata-span'); fermata_span.innerHTML = `"${nome}"`; const urlBackend = `https://setaapi.serverissimo.freeddns.org/arrivals/${codice}`; +//const urlBackend = `http://localhost:5001/arrivals/${codice}`; function caricadati(){ fetch(urlBackend) .then(response => { @@ -34,7 +35,7 @@ function caricadati(){