mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-24 20:44:08 -03:00
feat: support reverse-proxy URL subpaths (llama-swap, SwarmUI) (#1122)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function getLmBasePath(): string {
|
||||
const { pathname } = window.location;
|
||||
return pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;
|
||||
}
|
||||
|
||||
export function lmApiUrl(path: string): string {
|
||||
return `${getLmBasePath()}${path}`;
|
||||
}
|
||||
Reference in New Issue
Block a user