2020-07-22 22:19:39 +08:00
|
|
|
package dashboard
|
|
|
|
|
|
|
|
|
|
import (
|
2020-12-03 11:03:12 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
2021-07-11 18:05:49 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/dashboard/boards"
|
2020-07-22 22:19:39 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
|
|
|
"github.com/iwind/TeaGo"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
|
|
|
server.Prefix("/dashboard").
|
2021-01-21 18:55:53 +08:00
|
|
|
Data("teaMenu", "dashboard").
|
2020-12-03 11:03:12 +08:00
|
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeCommon)).
|
2020-07-22 22:19:39 +08:00
|
|
|
GetPost("", new(IndexAction)).
|
2021-07-11 18:05:49 +08:00
|
|
|
|
|
|
|
|
// 看板
|
|
|
|
|
Prefix("/dashboard/boards").
|
2021-08-30 15:23:31 +08:00
|
|
|
GetPost("", new(boards.IndexAction)).
|
2021-07-11 18:05:49 +08:00
|
|
|
Get("/waf", new(boards.WafAction)).
|
2021-07-12 16:56:56 +08:00
|
|
|
Post("/wafLogs", new(boards.WafLogsAction)).
|
2021-07-11 18:05:49 +08:00
|
|
|
Get("/dns", new(boards.DnsAction)).
|
|
|
|
|
Get("/user", new(boards.UserAction)).
|
2020-07-22 22:19:39 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|