aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-25 15:19:10 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-25 16:20:46 +0300
commitce0aab36432c655c8cb48ccc2caf23d10d77cad1 (patch)
treef2051e8a602e94ca79f68ff111df7dcbfde3c51d /webui.py
parentc251e8db8d71e649e4350f13aad1a76ed98d35c3 (diff)
Merge pull request #11984 from AUTOMATIC1111/api-only-subpath-(root_path)
api only subpath (rootpath)
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index 2314735f..6bf06854 100644
--- a/webui.py
+++ b/webui.py
@@ -374,7 +374,7 @@ def api_only():
api.launch(
server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
port=cmd_opts.port if cmd_opts.port else 7861,
- root_path = f"/{cmd_opts.subpath}"
+ root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
)