From a288b8760f800a654634365d565e167cd0838f69 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Mon, 17 Feb 2014 19:05:48 -0600 Subject: [PATCH] Add status screen --- core/http.go | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) 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(` + Pilosa - status + + + + + `)) +}