15 lines
232 B
Go
15 lines
232 B
Go
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()
|
|
})
|
|
}
|