chore: cleanup

This commit is contained in:
Lluis Agusti
2025-07-03 18:06:44 +04:00
parent 8bbd2a8125
commit c6c539e48e

View File

@@ -14,9 +14,8 @@ function getBackendBaseUrl() {
}
function buildBackendUrl(path: string[], queryString: string): string {
const actualPath = path[0] === "api" ? path.slice(1) : path;
const backendPath = actualPath.join("/");
return `${getBackendBaseUrl()}/api/${backendPath}${queryString}`;
const backendPath = path.join("/");
return `${getBackendBaseUrl()}/${backendPath}${queryString}`;
}
async function handleJsonRequest(