🐛 fix(App.tsx): change fetch URL to match backend API endpoint

The fetch URL was changed to match the backend API endpoint. The previous URL was incorrect and caused the fetch request to fail.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-13 18:08:01 -03:00
commit ebf5568db0

View file

@ -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);