|
|
@ -23,7 +23,7 @@ export const getWeather = async (city: string) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const getQuote = async () => {
|
|
|
|
export const getQuote = async () => {
|
|
|
|
const { data } = await axios.get('http://api.quotable.io/random');
|
|
|
|
const { data } = await axios.get('https://api.quotable.io/random');
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
quote: `“${data.content}” — ${data.author}`,
|
|
|
|
quote: `“${data.content}” — ${data.author}`,
|
|
|
|
};
|
|
|
|
};
|
|
|
|