diff --git a/src/utils/api.ts b/src/utils/api.ts index d513718..c084f55 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -15,7 +15,7 @@ export const getReadme = async () => { export const getWeather = async (city: string) => { try { - const { data } = await axios.get(`/api/weather/${city}`); + const { data } = await axios.get(`https://wttr.in/${city}?ATm`); return data; } catch (error) { return error;