From 61207db4da7069829254f935a4c5b4c1209e6620 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 9 Jun 2023 17:17:55 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(App.tsx):=20change=20fetch?= =?UTF-8?q?=20URL=20to=20relative=20path=20to=20fix=20incorrect=20API=20ca?= =?UTF-8?q?ll=20The=20fetch=20URL=20was=20incorrect=20and=20was=20calling?= =?UTF-8?q?=20the=20API=20with=20an=20absolute=20path=20instead=20of=20a?= =?UTF-8?q?=20relative=20path.=20This=20caused=20the=20API=20call=20to=20f?= =?UTF-8?q?ail.=20The=20URL=20has=20been=20changed=20to=20a=20relative=20p?= =?UTF-8?q?ath=20to=20fix=20the=20issue.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index f883ad2ef..f68c3ea73 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -49,7 +49,7 @@ export default function App() { // Initialize state variable for the version const [version, setVersion] = useState(""); useEffect(() => { - fetch("api/v1/version") + fetch("/version") .then((res) => res.json()) .then((data) => { setVersion(data.version);