replace zxq.co/ripple/hanayo
This commit is contained in:
21
vendor/github.com/osuripple/cheesegull/api/index.go
generated
vendored
Normal file
21
vendor/github.com/osuripple/cheesegull/api/index.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user