- make the root / pingable.

This commit is contained in:
gazebo
2018-06-27 15:16:34 +08:00
parent 79adc40a49
commit a0d908528e

View File

@@ -11,6 +11,7 @@ import (
"git.rosy.net.cn/jx-callback/controllers"
"github.com/astaxie/beego"
beecontext "github.com/astaxie/beego/context"
)
func init() {
@@ -35,4 +36,7 @@ func init() {
),
)
beego.AddNamespace(nsJd, nsElm, nsMtps, nsDada)
beego.Get("/", func(ctx *beecontext.Context) {
ctx.WriteString("pong")
})
}