🐛 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:
parent
52baae64e6
commit
ebf5568db0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue