llamando a la url con http y no con https

This commit is contained in:
Tatiana Villa 2026-02-21 18:27:38 +01:00
parent c1f74c3db0
commit ff69e545c2
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ let selectedMonth = new Date().getMonth(); // mes actual
let ciudadActual = "Madrid"; // ciudad por defecto
// Antes: const BASE_API = "https://aplicacionesdevanguardia.es/eltiempo/servidor/api-weather-fechas.php";
const BASE_API = "https://tatvil.es/apis/api/weather/filter";
const BASE_API = "http://tatvil.es/apis/api/weather/filter";
// ====================
// Construir URL de API según filtros
@ -39,7 +39,7 @@ function buildApiUrl({ ciudad, desde, hasta }) {
console.log("Construyendo URL con parámetros:", { ciudad, desde, hasta });
console.log("URL API:", `${BASE_API}?${params.toString()}`);
return `${BASE_API}?${params.toString()}`;
}