Files
waf-platform/EdgeAdmin/internal/web/actions/default/settings/client-systems/init.go

34 lines
916 B
Go

//go:build plus
package clientsystems
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/plus"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/settings/client-systems/system"
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/settings/settingutils"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(plus.NewBasicHelper()).
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeSetting)).
Helper(settingutils.NewAdvancedHelper("clientSystem")).
//
Prefix("/settings/client-systems").
Get("", new(IndexAction)).
GetPost("/createPopup", new(CreatePopupAction)).
//
Prefix("/settings/client-systems/system").
GetPost("/updatePopup", new(system.UpdatePopupAction)).
//
EndAll()
})
}