增加在线检查最新版本功能

This commit is contained in:
GoEdgeLab
2021-12-15 20:13:10 +08:00
parent 4d603712bf
commit df5ffe6be7
7 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package updates
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"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(configloaders.AdminModuleCodeSetting)).
Helper(settingutils.NewHelper("updates")).
Prefix("/settings/updates").
GetPost("", new(IndexAction)).
EndAll()
})
}