diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-12 18:15:27 +0900 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-12 18:15:27 +0900 |
commit | b9664ab6154818680ee25920e229b808a3cdec68 (patch) | |
tree | c1273af6374e8e098f252ee901abbfb1907788e2 /webui.py | |
parent | 9142be0a0d8cea37cf1ae86c17fc7dcb161d9a42 (diff) |
move _stop route to api
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -362,11 +362,6 @@ 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)
-def stop_route(request):
- shared.state.server_command = "stop"
- return Response("Stopping.")
-
-
def webui():
launch_api = cmd_opts.api
initialize()
@@ -404,8 +399,6 @@ def webui(): "redoc_url": "/redoc",
},
)
- if cmd_opts.add_stop_route:
- app.add_route("/_stop", stop_route, methods=["POST"])
# after initial launch, disable --autolaunch for subsequent restarts
cmd_opts.autolaunch = False
|