mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
19 lines
446 B
Go
19 lines
446 B
Go
|
|
package settings
|
||
|
|
|
||
|
|
import (
|
||
|
|
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)).
|
||
|
|
EndAll()
|
||
|
|
})
|
||
|
|
}
|