Files
EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/init.go

26 lines
692 B
Go
Raw Normal View History

2020-09-06 16:19:34 +08:00
package settings
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/clusters/cluster/settings/dns"
2020-09-06 16:19:34 +08:00
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()).
Helper(clusters.NewClusterHelper()).
Prefix("/clusters/cluster/settings").
GetPost("", new(IndexAction)).
GetPost("/health", new(HealthAction)).
GetPost("/healthRunPopup", new(HealthRunPopupAction)).
// DNS
GetPost("/dns", new(dns.IndexAction)).
2020-09-06 16:19:34 +08:00
EndAll()
})
}