Fix stop viewer

This commit is contained in:
2025-07-26 11:42:13 +02:00
committed by GitHub
parent 8fb4fbd77c
commit 3f9a928ed7
4 changed files with 8 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ document.getElementById('bacino').addEventListener('change', function(event) {
const resultsContainer = document.getElementById('searchResults');
resultsContainer.innerHTML = '<p>Caricamento lista fermate in corso...</p>';
fetch(`https://api.vichingo455.freeddns.org/start-fermatebus/bacino?selectedOption=${selectedOption}`)
fetch(`https://startapi.serverissimo.freeddns.org/start-fermatebus/bacino?selectedOption=${selectedOption}`)
.then(res => res.json())
.then(data => {
allOptions = data;

View File

@@ -3,7 +3,8 @@ const palina = params.get('palina');
const targetID = params.get('targetID');
const selectedOption = params.get('selectedOption');
const urlBackend = `https://api.vichingo455.freeddns.org/start-fermatebus/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
const urlBackend = `https://startapi.serverissimo.freeddns.org/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
//const urlBackend = `https://api.vichingo455.freeddns.org/start-fermatebus/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
//const urlBackend = `http://localhost:3005/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
function caricadati(){
fetch(urlBackend)