- make the root / pingable.
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/controllers"
|
"git.rosy.net.cn/jx-callback/controllers"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
beecontext "github.com/astaxie/beego/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -35,4 +36,7 @@ func init() {
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
beego.AddNamespace(nsJd, nsElm, nsMtps, nsDada)
|
beego.AddNamespace(nsJd, nsElm, nsMtps, nsDada)
|
||||||
|
beego.Get("/", func(ctx *beecontext.Context) {
|
||||||
|
ctx.WriteString("pong")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user