2020-07-22 22:19:39 +08:00
|
|
|
package settings
|
|
|
|
|
|
|
|
|
|
import (
|
2020-10-10 20:28:36 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/settings/settingutils"
|
2020-07-22 22:19:39 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
|
|
|
|
|
"github.com/iwind/TeaGo"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
|
|
|
|
server.
|
|
|
|
|
Helper(helpers.NewUserMustAuth()).
|
|
|
|
|
Helper(NewHelper()).
|
2020-10-10 20:28:36 +08:00
|
|
|
Helper(settingutils.NewHelper("console")).
|
2020-07-22 22:19:39 +08:00
|
|
|
Prefix("/settings").
|
|
|
|
|
Get("", new(IndexAction)).
|
|
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|