mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:10:29 +08:00
19 lines
432 B
Go
19 lines
432 B
Go
package security
|
|
|
|
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("security")).
|
|
Prefix("/settings/security").
|
|
Get("", new(IndexAction)).
|
|
EndAll()
|
|
})
|
|
}
|