Update frontend/src/utils/apiFunc.ts

This commit is contained in:
2025-08-02 02:18:46 +02:00
parent bbbc8b9edd
commit c15d0869c6

View File

@@ -7,7 +7,7 @@ export const fetchWeather = async (
) => {
// Get location data
const location = await fetch(
`http://api.openweathermap.org/geo/1.0/direct?q=${city}&appid=${apiKey}`
`https://api.openweathermap.org/geo/1.0/direct?q=${city}&appid=${apiKey}`
).then((response) => {
if (response.status === 401) {
myToast(