diff --git a/routers/router.go b/routers/router.go index 969a524ce..5a2e515af 100644 --- a/routers/router.go +++ b/routers/router.go @@ -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") + }) }