Example #1
0
func (self *APIServer) stats(w rest.ResponseWriter, req *rest.Request) {
	stats := self.app.Stats
	w.WriteJson(stats)
}
Example #2
0
func (self *APIServer) status(w rest.ResponseWriter, req *rest.Request) {
	w.WriteJson(self.handler.GetStatus())
}