提交 6467cc8e 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

add heartbeat interface

上级 3b8404b2
......@@ -2,7 +2,6 @@ package index
import (
"github.com/easysoft/zentaoatf/internal/server/core/module"
"github.com/easysoft/zentaoatf/internal/server/middleware"
"github.com/kataras/iris/v12"
)
......@@ -16,8 +15,6 @@ func NewHeartBeatModule() *HeartBeatModule {
// Party 执行
func (m *HeartBeatModule) Party() module.WebModule {
handler := func(index iris.Party) {
index.Use(middleware.InitCheck())
index.Get("/", func(ctx iris.Context) {
ctx.JSON(iris.Map{"code": 0, "msg": "ok"})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册