...
|
...
|
@@ -7,8 +7,7 @@ import ( |
|
|
)
|
|
|
|
|
|
func init() {
|
|
|
nsV1 := beego.NewNamespace("v1", beego.NSBefore(middleware.CheckJWTToken)) //beego.NSNamespace("auth", beego.NSInclude(&controllers.AuthController{})),
|
|
|
|
|
|
nsV1 := beego.NewNamespace("v1", beego.NSBefore(middleware.CheckJWTToken)) //beego.NSNamespace("auth", beego.NSInclude(&controllers.AuthController{}))
|
|
|
nsV1.Router("/auth/login", &controllers.AuthController{}, "Post:Login")
|
|
|
nsV1.Router("/auth/smsCode", &controllers.AuthController{}, "Post:SmsCode")
|
|
|
nsV1.Router("/auth/accessToken", &controllers.AuthController{}, "Post:AccessToken")
|
...
|
...
|
|