fix: apiBase not including api version when automatically fetched

This commit is contained in:
SauceyRed 2025-05-31 16:32:04 +02:00
parent 115b7d8341
commit 9a84315b64
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -67,7 +67,7 @@ if (status.value == "success" && gorbTxt.value) {
console.log("got gorb.txt:", gorbTxt.value);
const parsed = parseWellKnown(gorbTxt.value as string);
if (parsed.ApiBaseUrl) {
apiBase.value = parsed.ApiBaseUrl;
apiBase.value = `${parsed.ApiBaseUrl}/${apiVersion}`;
console.log("set apiBase to:", parsed.ApiBaseUrl);
}
} else {