1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2020-04-13 18:37:54 +08:00
parent cb6dabb41f
commit 3f215b0e1d
5 changed files with 19 additions and 10 deletions

View File

@@ -168,14 +168,14 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
case "debug_enable":
log.Debug("enable schedule")
js, _ := json.Marshal(scheduler.Enable)
js, _ := json.Marshal(scheduler.Enable())
w.Header().Set("Content-Type", "application/json")
w.Write(js)
break
case "debug_disable":
log.Debug("disable schedule")
js, _ := json.Marshal(scheduler.Disable)
js, _ := json.Marshal(scheduler.Disable())
w.Header().Set("Content-Type", "application/json")
w.Write(js)
break