From 574f094bacb559eaf93c37e61e3a2a58c8cc3c65 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Sun, 3 Aug 2025 20:31:13 +0200 Subject: [PATCH] changed protocol --- 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 91293a0..a97f89f 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( - `https://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent( + `http://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent( city )}&units=${encodeURIComponent(units)}`, {