From ecbc4b26733e6564f5c8375fd3e2229ffa81d26c Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 17 Jul 2023 19:10:43 +0800 Subject: [PATCH] backend instead of frontend start stop --- static/app.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/app.js b/static/app.js index 20f63bd..f8e7ed5 100755 --- a/static/app.js +++ b/static/app.js @@ -3175,16 +3175,13 @@ function savePrompt() { setTimeout( function() { document.getElementById('saved-msg-feedback').style.display = "block"; - fetch("/stop", { - method: "GET", + fetch("/savePromptStartStop", { + method: "PUT", }); }, 100); setTimeout( function() { document.getElementById('saved-msg-feedback').style.display = "none"; - fetch("/start", { - method: "PUT", - }); }, 3000); }