34 lines
924 B
Go
34 lines
924 B
Go
//go:build plus
|
|
|
|
package clientbrowsers
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/plus"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/settings/client-browsers/browser"
|
|
"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("clientBrowser")).
|
|
|
|
//
|
|
Prefix("/settings/client-browsers").
|
|
Get("", new(IndexAction)).
|
|
GetPost("/createPopup", new(CreatePopupAction)).
|
|
|
|
//
|
|
Prefix("/settings/client-browsers/browser").
|
|
GetPost("/updatePopup", new(browser.UpdatePopupAction)).
|
|
|
|
//
|
|
EndAll()
|
|
})
|
|
}
|