From d84d8767350230779f7b52d2e257d7da2504309c Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Sun, 3 Aug 2025 20:36:04 +0200 Subject: [PATCH] fix: update weather API URL to use HTTPS for improved security --- frontend/src/utils/apiFunc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/apiFunc.ts b/frontend/src/utils/apiFunc.ts index a97f89f..91293a0 100644 --- a/frontend/src/utils/apiFunc.ts +++ b/frontend/src/utils/apiFunc.ts @@ -3,7 +3,7 @@ import { myToast } from "./toastify"; export const fetchWeather = async (city: string, units: string) => { try { const response = await fetch( - `http://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent( + `https://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent( city )}&units=${encodeURIComponent(units)}`, {