From a3a51cd737ab7d9ed275557487b147c9c77ad48a Mon Sep 17 00:00:00 2001 From: Curry141 <135717077+Daniongithub@users.noreply.github.com> Date: Sat, 15 Nov 2025 16:27:11 +0100 Subject: [PATCH] Revert API url --- index.html | 1 - start_menu/servizi/start-fermatebus/js/cercafermata.js | 4 ++-- start_menu/servizi/start-fermatebus/js/fermata.js | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index b5826e0..0bc1d69 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,6 @@
Attenzione: stiamo riscontrando problemi con i nostri server,
pertanto il servizio "Autobus in tempo reale" non funziona.
Nuovo articolo! "Altra navetta, altro MAN, ma 6 metri in più!".
Sistemate home Ravenna e START per dispositivi piccoli, aggiornata la lista mezzi.
diff --git a/start_menu/servizi/start-fermatebus/js/cercafermata.js b/start_menu/servizi/start-fermatebus/js/cercafermata.js
index e9d8055..688cc15 100644
--- a/start_menu/servizi/start-fermatebus/js/cercafermata.js
+++ b/start_menu/servizi/start-fermatebus/js/cercafermata.js
@@ -111,8 +111,8 @@ document.getElementById('bacino').addEventListener('change', function(event) {
const selectedOption = event.target.value;
currentSelectedOption = selectedOption;
- //const urlFermate = `https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`;
- const urlFermate = `https://startapi.serverissimo.freeddns.org/bacino?selectedOption=${selectedOption}`;
+ const urlFermate = `https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`;
+ //const urlFermate = `https://startapi.serverissimo.freeddns.org/bacino?selectedOption=${selectedOption}`;
const radiobuttons = document.getElementById('radios');
const ricerca = document.getElementById('ricerca');
diff --git a/start_menu/servizi/start-fermatebus/js/fermata.js b/start_menu/servizi/start-fermatebus/js/fermata.js
index 48d759e..4971fd0 100644
--- a/start_menu/servizi/start-fermatebus/js/fermata.js
+++ b/start_menu/servizi/start-fermatebus/js/fermata.js
@@ -3,8 +3,8 @@ const palina = params.get('palina');
const targetID = params.get('targetID');
const selectedOption = params.get('selectedOption');
-//const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
-const urlBackend = `https://startapi.serverissimo.freeddns.org/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
+const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
+//const urlBackend = `https://startapi.serverissimo.freeddns.org/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
function caricadati(){
fetch(urlBackend)
.then(res => res.json())
@@ -17,7 +17,7 @@ function caricadati(){
const container = document.getElementById('tabella-container');
container.innerHTML = '';
- fetch('https://startapi.serverissimo.freeddns.org/versione')
+ fetch('https://api.vichingo455.freeddns.org/fermateapi/versione')
.then(res => res.text())
.then(versione => document.getElementById("ver").innerHTML = versione);