1.4.5.2
This commit is contained in:
14
EdgeUser/internal/web/actions/default/index/init.go
Normal file
14
EdgeUser/internal/web/actions/default/index/init.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package index
|
||||
|
||||
import (
|
||||
"github.com/iwind/TeaGo"
|
||||
)
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.Prefix("").
|
||||
GetPost("/", new(IndexAction)).
|
||||
Post("/checkOTP", new(CheckOTPAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user