...
|
...
|
@@ -8,8 +8,10 @@ import ( |
|
|
|
|
|
func init() {
|
|
|
web.Router("/login", &controllers.AuthController{}, "Post:Login")
|
|
|
|
|
|
//手机模块登录-旧
|
|
|
web.Router("/login/mobile", &controllers.AuthController{}, "Post:MobileLogin")
|
|
|
////手机模块登录-新
|
|
|
web.Router("/v1/auth/authorize", &controllers.AuthController{}, "Post:MobileLogin")
|
|
|
//
|
|
|
web.InsertFilter("/auth/admin/*", web.BeforeExec, middlewares.CheckAdminToken())
|
|
|
web.Router("/auth/admin/user", &controllers.AuthController{}, "Get:User")
|
...
|
...
|
|