response 501 if not a able to restart

This commit is contained in:
w-e-w 2023-06-14 19:52:12 +09:00
parent 6387f0e85d
commit 49fb2a3376
1 changed files with 1 additions and 0 deletions

View File

@ -727,6 +727,7 @@ class Api:
def restart_webui(self):
if restart.is_restartable():
restart.restart_program()
return Response(status_code=501)
def terminate_webui(request):
shared.state.server_command = "stop"