[系统设置]增加界面设置,可以定制系统名称等

This commit is contained in:
刘祥超
2020-11-22 15:34:13 +08:00
parent 6c2d6f3382
commit 9ddd3756c5
24 changed files with 367 additions and 91 deletions

View File

@@ -0,0 +1,20 @@
package server
import (
"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(helpers.NewUserMustAuth()).
Helper(settingutils.NewHelper("server")).
Prefix("/settings/server").
Get("", new(IndexAction)).
GetPost("/updateHTTPPopup", new(UpdateHTTPPopupAction)).
GetPost("/updateHTTPSPopup", new(UpdateHTTPSPopupAction)).
EndAll()
})
}