Update api.ts

pull/1/head
Cveinnt 2 years ago
parent 43c2994f16
commit 3f4c4e9a18

@ -15,7 +15,7 @@ export const getReadme = async () => {
export const getWeather = async (city: string) => { export const getWeather = async (city: string) => {
try { try {
const { data } = await axios.get(`/api/weather/${city}`); const { data } = await axios.get(`https://wttr.in/${city}?ATm`);
return data; return data;
} catch (error) { } catch (error) {
return error; return error;

Loading…
Cancel
Save