mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
add version, jhl
This commit is contained in:
@@ -88,6 +88,13 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write(js)
|
||||
break
|
||||
|
||||
case "get_counter":
|
||||
log.Debug("get_counters")
|
||||
js, _ := json.Marshal(pool.getCounter())
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Write(js)
|
||||
break
|
||||
|
||||
case "group_list":
|
||||
log.Debug("group_list")
|
||||
js, _ := json.Marshal(InstanceOfGroupManager().List())
|
||||
|
||||
Reference in New Issue
Block a user