From a0fab78f56e4331c50c47f8c4c5782752bada31d Mon Sep 17 00:00:00 2001 From: Matt DiMeglio Date: Sat, 14 Jun 2025 17:52:12 -0400 Subject: [PATCH] Update AppRouter.jsx --- web/src/router/AppRouter.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/router/AppRouter.jsx b/web/src/router/AppRouter.jsx index 6667437..e77714b 100644 --- a/web/src/router/AppRouter.jsx +++ b/web/src/router/AppRouter.jsx @@ -63,7 +63,7 @@ const AppRouter = () => { const fetchAPI = async () => { const location = window.location; - const uri = `http://192.168.0.105:5172/api`; + const uri = `${location?.protocol}//192.168.0.105:5172/api`; const response = await axios.get(uri); console.log(response.data.fruits); };