提交 e21d0222 编写于 作者: Z zhaoke

* Add heartbeat response.

上级 8bc7ca8c
......@@ -19,7 +19,7 @@ func (m *HeartBeatModule) Party() module.WebModule {
index.Use(middleware.InitCheck())
index.Get("/", func(ctx iris.Context) {
ctx.StatusCode(200)
ctx.JSON(iris.Map{"code": 0, "msg": "ok"})
})
}
return module.NewModule("/heartbeat", handler)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册