- add HEAD / to make uptime happy.

This commit is contained in:
gazebo
2018-07-22 23:36:24 +08:00
parent 818856a5ed
commit 96d8e7b2fa

View File

@@ -39,4 +39,7 @@ func init() {
beego.Get("/", func(ctx *beecontext.Context) { beego.Get("/", func(ctx *beecontext.Context) {
ctx.WriteString("pong\n") ctx.WriteString("pong\n")
}) })
beego.Head("/", func(ctx *beecontext.Context) {
ctx.WriteString("pong\n")
})
} }