diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 11:40:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 11:40:21 +0000 |
commit | eb51acb89e4c10c08af8649c1fc379552ba41ecc (patch) | |
tree | 0106998d33be2d61bbb054c54d3d5f13cd3ae88f /modules/api | |
parent | 6acc4cd7e1bc49904895e7e195dc84df77dc9abe (diff) | |
parent | cc9c1719786de00d4a5bfcf83be4bf2808cf0cb5 (diff) | |
download | stable-diffusion-webui-gfx803-eb51acb89e4c10c08af8649c1fc379552ba41ecc.tar.gz stable-diffusion-webui-gfx803-eb51acb89e4c10c08af8649c1fc379552ba41ecc.tar.bz2 stable-diffusion-webui-gfx803-eb51acb89e4c10c08af8649c1fc379552ba41ecc.zip |
Merge pull request #11503 from AUTOMATIC1111/rename---add-stop-route-to---api-server-stop
Rename --add-stop-route to --api-server-stop
Diffstat (limited to 'modules/api')
-rw-r--r-- | modules/api/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 9d33b9a9..224bbfc6 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -205,7 +205,7 @@ class Api: self.add_api_route("/sdapi/v1/scripts", self.get_scripts_list, methods=["GET"], response_model=models.ScriptsList) self.add_api_route("/sdapi/v1/script-info", self.get_script_info, methods=["GET"], response_model=List[models.ScriptInfo]) - if shared.cmd_opts.add_stop_route: + if shared.cmd_opts.api_server_stop: self.add_api_route("/sdapi/v1/server-kill", self.kill_webui, methods=["POST"]) self.add_api_route("/sdapi/v1/server-restart", self.restart_webui, methods=["POST"]) self.add_api_route("/sdapi/v1/server-stop", self.stop_webui, methods=["POST"]) |