This commit is contained in:
Leocraft1 2025-07-25 20:07:51 +02:00
parent e887c57348
commit ac8203a047
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const resultsContainer = document.getElementById('searchResults');
let allresults = [];
window.onbeforeunload=searchBar.value="";
const url = 'http://setaapi.serverissimo.freeddns.org/stoplist';
const url = 'https://setaapi.serverissimo.freeddns.org/stoplist';
fetch(url)
.then(response => {
if (!response.ok) throw new Error("Errore nel caricamento dei dati.");

View File

@ -6,7 +6,7 @@ const codice = params.get('code');
const fermata_span = document.getElementById('fermata-span');
fermata_span.innerHTML = `"${nome}"`;
const urlBackend = `http://setaapi.serverissimo.freeddns.org/arrivals/${codice}`;
const urlBackend = `https://setaapi.serverissimo.freeddns.org/arrivals/${codice}`;
function caricadati(){
fetch(urlBackend)
.then(response => {