mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
43 lines
1.3 KiB
Go
43 lines
1.3 KiB
Go
package settings
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/cache"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/dns"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/toa"
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/waf"
|
|
clusters "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.
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeNode)).
|
|
Helper(clusters.NewClusterHelper()).
|
|
Prefix("/clusters/cluster/settings").
|
|
GetPost("", new(IndexAction)).
|
|
|
|
// 健康检查
|
|
GetPost("/health", new(HealthAction)).
|
|
GetPost("/healthRunPopup", new(HealthRunPopupAction)).
|
|
|
|
// 缓存
|
|
GetPost("/cache", new(cache.IndexAction)).
|
|
|
|
// WAF
|
|
GetPost("/waf", new(waf.IndexAction)).
|
|
|
|
// DNS
|
|
Prefix("/clusters/cluster/settings/dns").
|
|
GetPost("", new(dns.IndexAction)).
|
|
|
|
// TOA
|
|
Prefix("/clusters/cluster/settings/toa").
|
|
GetPost("", new(toa.IndexAction)).
|
|
|
|
EndAll()
|
|
})
|
|
}
|