2020-10-29 20:53:08 +08:00
|
|
|
package groups
|
2020-09-13 20:37:07 +08:00
|
|
|
|
|
|
|
|
import (
|
2020-12-03 11:03:12 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
2020-09-13 20:37:07 +08:00
|
|
|
"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.AdminModuleCodeServer)).
|
2020-09-13 20:37:07 +08:00
|
|
|
Helper(NewHelper()).
|
2020-11-27 15:18:32 +08:00
|
|
|
Data("teaSubMenu", "group").
|
2020-10-29 20:53:08 +08:00
|
|
|
Prefix("/servers/components/groups").
|
2020-09-13 20:37:07 +08:00
|
|
|
Get("", new(IndexAction)).
|
2020-10-29 20:53:08 +08:00
|
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
|
|
|
|
GetPost("/updatePopup", new(UpdatePopupAction)).
|
|
|
|
|
GetPost("/selectPopup", new(SelectPopupAction)).
|
|
|
|
|
Post("/delete", new(DeleteAction)).
|
|
|
|
|
Post("/sort", new(SortAction)).
|
2020-09-13 20:37:07 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|