mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
20 lines
450 B
Go
20 lines
450 B
Go
package settings
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
|
"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(NewHelper()).
|
|
Prefix("/settings").
|
|
Get("", new(IndexAction)).
|
|
Get("/advanced", new(AdvancedAction)).
|
|
EndAll()
|
|
})
|
|
}
|