From ebf5568db0b49bf8501c23b44ac91d112fdb0f18 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 13 Jun 2023 18:08:01 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(App.tsx):=20change=20fetch?= =?UTF-8?q?=20URL=20to=20match=20backend=20API=20endpoint=20The=20fetch=20?= =?UTF-8?q?URL=20was=20changed=20to=20match=20the=20backend=20API=20endpoi?= =?UTF-8?q?nt.=20The=20previous=20URL=20was=20incorrect=20and=20caused=20t?= =?UTF-8?q?he=20fetch=20request=20to=20fail.?= 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 04dbcdf04..22f9d4fcd 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -50,7 +50,7 @@ export default function App() { // Initialize state variable for the version const [version, setVersion] = useState(""); useEffect(() => { - fetch("/version") + fetch("api/v1/version") .then((res) => res.json()) .then((data) => { setVersion(data.version);