#228 running dbgate on subpath

This commit is contained in:
Jan Prochazka
2022-02-24 14:42:37 +01:00
parent 07c7a0405a
commit 7112f930ae
5 changed files with 24 additions and 31 deletions

View File

@@ -9,7 +9,7 @@ export default function resolveApi() {
if (apiUrl) {
return apiUrl;
}
return window.location.origin;
return window.location.href.replace(/\/*$/, '');
}
export function resolveApiHeaders() {