hanayo/vendor/github.com/osuripple/cheesegull/api/index.go

22 lines
392 B
Go
Raw Normal View History

2019-02-23 13:29:15 +00:00
package api
import (
"expvar"
)
func index(c *Context) {
c.WriteHeader("Content-Type", "text/plain; charset=utf-8")
c.Write([]byte("CheeseGull v2.x Woo\nFor more information: https://github.com/osuripple/cheesegull"))
}
var _evh = expvar.Handler()
func expvarHandler(c *Context) {
_evh.ServeHTTP(c.writer, c.Request)
}
func init() {
GET("/", index)
GET("/expvar", expvarHandler)
}