增加全局的边缘节点日志

This commit is contained in:
刘祥超
2021-05-19 19:03:03 +08:00
parent e9d329bf8b
commit da332c2756
13 changed files with 219 additions and 23 deletions

View File

@@ -0,0 +1,19 @@
package logs
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeNode)).
Data("teaMenu", "clusters").
Data("teaSubMenu", "log").
Prefix("/clusters/logs").
Get("", new(IndexAction)).
EndAll()
})
}