diff --git a/core/http.go b/core/http.go index 7c50e0d53..41c4cd547 100644 --- a/core/http.go +++ b/core/http.go @@ -32,6 +32,7 @@ func (self *WebService) Run() { mux.HandleFunc("/message", self.HandleMessage) mux.HandleFunc("/query", self.HandleQuery) mux.HandleFunc("/stats", self.HandleStats) + mux.HandleFunc("/status", self.HandleStatus) mux.HandleFunc("/info", self.HandleInfo) mux.HandleFunc("/processes", self.HandleProcesses) mux.HandleFunc("/listen/ws", self.HandleListenWS) @@ -363,3 +364,40 @@ func (self *WebService) HandleListenStream(w http.ResponseWriter, r *http.Reques return err }) } + +func (self *WebService) HandleStatus(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(` +