Files
EdgeAdmin/internal/web/actions/default/clusters/grants/init.go

31 lines
920 B
Go
Raw Normal View History

2020-10-25 21:27:28 +08:00
package grants
import (
2020-12-03 11:03:12 +08:00
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
2020-10-25 21:27:28 +08:00
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/clusterutils"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
2020-12-03 11:03:12 +08:00
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeNode)).
2020-10-25 21:27:28 +08:00
Helper(clusterutils.NewClustersHelper()).
2020-11-10 15:45:48 +08:00
Data("teaSubMenu", "grant").
2020-10-25 21:27:28 +08:00
Prefix("/clusters/grants").
// 授权管理
Get("", new(IndexAction)).
GetPost("/create", new(CreateAction)).
GetPost("/update", new(UpdateAction)).
Post("/delete", new(DeleteAction)).
Get("/grant", new(GrantAction)).
GetPost("/selectPopup", new(SelectPopupAction)).
GetPost("/createPopup", new(CreatePopupAction)).
GetPost("/updatePopup", new(UpdatePopupAction)).
2021-04-18 21:19:50 +08:00
GetPost("/test", new(TestAction)).
2020-10-25 21:27:28 +08:00
EndAll()
})
}