2020-10-11 10:51:13 +08:00
|
|
|
package profile
|
|
|
|
|
|
|
|
|
|
import (
|
2020-12-03 11:03:12 +08:00
|
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
2020-10-11 10:51:13 +08:00
|
|
|
"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.
|
2020-12-03 11:03:12 +08:00
|
|
|
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeSetting)).
|
2020-12-14 21:24:21 +08:00
|
|
|
Helper(settingutils.NewAdvancedHelper("database")).
|
2020-10-11 10:51:13 +08:00
|
|
|
Prefix("/settings/database").
|
|
|
|
|
Get("", new(IndexAction)).
|
2020-10-11 16:20:55 +08:00
|
|
|
GetPost("/update", new(UpdateAction)).
|
2020-10-11 10:51:13 +08:00
|
|
|
EndAll()
|
|
|
|
|
})
|
|
|
|
|
}
|