From 2d13db66e140d25484f9b19f7f3f2749717d2276 Mon Sep 17 00:00:00 2001 From: Ewan Zhang Date: Tue, 19 Mar 2024 12:35:33 +1300 Subject: [PATCH] update https for endpoint --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index ab74eaf..531f379 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -14,7 +14,7 @@ function App() { useEffect(() => { //fetch the data from API endpoint fetch( - `http://api.weatherapi.com/v1/current.json?key=650ad8fb3c6e4ecab3190253232706&q=${currentCity}&aqi=no` + `https://api.weatherapi.com/v1/current.json?key=650ad8fb3c6e4ecab3190253232706&q=${currentCity}&aqi=no` ) .then((res) => res.json()) .then((result) => {