aboutsummaryrefslogtreecommitdiff
path: root/modules/api
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-14 19:53:08 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-14 19:53:08 +0900
commit6091c4e4aa32b674f8ec755e6bd58989f09b08c5 (patch)
treed4204adaa24109a872d8256e4f656774fa3cd4a2 /modules/api
parent49fb2a337661d1b9a80de8ff35a640083fa98d2f (diff)
terminate -> stop
Diffstat (limited to 'modules/api')
-rw-r--r--modules/api/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 4dc48a03..80d45ca7 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -212,7 +212,7 @@ class Api:
if shared.cmd_opts.add_stop_route:
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-terminate", self.terminate_webui, methods=["POST"])
+ self.add_api_route("/sdapi/v1/server-stop", self.stop_webui, methods=["POST"])
self.default_script_arg_txt2img = []
self.default_script_arg_img2img = []
@@ -729,6 +729,6 @@ class Api:
restart.restart_program()
return Response(status_code=501)
- def terminate_webui(request):
+ def stop_webui(request):
shared.state.server_command = "stop"
return Response("Stopping.")