From d6eeae402131bfa80fb410b956393d212c0dab26 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 17 Jun 2025 16:25:07 +0200 Subject: [PATCH] Add "/api" to default apiUriStr --- tranga-website/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tranga-website/src/App.tsx b/tranga-website/src/App.tsx index a2ff546..cd8c1a1 100644 --- a/tranga-website/src/App.tsx +++ b/tranga-website/src/App.tsx @@ -25,7 +25,7 @@ export default function App () { const [showJobs, setShowJobs] = useState(false); const [apiConnected, setApiConnected] = useState(false); - const apiUriStr = localStorage.getItem("apiUri") ?? window.location.href.substring(0, window.location.href.lastIndexOf("/")); + const apiUriStr = localStorage.getItem("apiUri") ?? window.location.href.substring(0, window.location.href.lastIndexOf("/")) + "/api"; const [apiUri, setApiUri] = useState(apiUriStr); const [mangas, setMangas] = useState([]);