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)}`, {