示例#1
0
文件: api.go 项目: kunapuli09/morgoth
func (self *APIServer) stats(w rest.ResponseWriter, req *rest.Request) {
	stats := self.app.Stats
	w.WriteJson(stats)
}
示例#2
0
文件: api.go 项目: kunapuli09/morgoth
func (self *APIServer) status(w rest.ResponseWriter, req *rest.Request) {
	w.WriteJson(self.handler.GetStatus())
}