Files
waf-platform/EdgeUser/internal/web/actions/default/settings/mobile-verify/init.go

20 lines
483 B
Go

package mobileverify
import (
"github.com/TeaOSLab/EdgeUser/internal/web/actions/default/settings/settingutils"
"github.com/TeaOSLab/EdgeUser/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(helpers.NewUserMustAuth("")).
Helper(settingutils.NewHelper("profile")).
Prefix("/settings/mobile-verify").
GetPost("", new(IndexAction)).
Post("/verify", new(VerifyAction)).
EndAll()
})
}