Update frontend/src/utils/apiFunc.ts
This commit is contained in:
@@ -7,7 +7,7 @@ export const fetchWeather = async (
|
|||||||
) => {
|
) => {
|
||||||
// Get location data
|
// Get location data
|
||||||
const location = await fetch(
|
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) => {
|
).then((response) => {
|
||||||
if (response.status === 401) {
|
if (response.status === 401) {
|
||||||
myToast(
|
myToast(
|
||||||
|
Reference in New Issue
Block a user