正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -12,7 +12,7 @@ func init() { | @@ -12,7 +12,7 @@ func init() { | ||
12 | nsV1 := beego.NewNamespace("/v1", | 12 | nsV1 := beego.NewNamespace("/v1", |
13 | beego.NSBefore(middleware.AllowOption), | 13 | beego.NSBefore(middleware.AllowOption), |
14 | beego.NSBefore(middleware.LogRequestData), | 14 | beego.NSBefore(middleware.LogRequestData), |
15 | - //beego.NSBefore(middleware.AuthToken), | 15 | + beego.NSBefore(middleware.AuthToken), |
16 | beego.NSNamespace("/department", | 16 | beego.NSNamespace("/department", |
17 | beego.NSRouter("/list", &controllers.CompanyController{}, "post:DepartmentList"), | 17 | beego.NSRouter("/list", &controllers.CompanyController{}, "post:DepartmentList"), |
18 | beego.NSRouter("/add", &controllers.CompanyController{}, "post:DepartmentAdd"), | 18 | beego.NSRouter("/add", &controllers.CompanyController{}, "post:DepartmentAdd"), |
-
请 注册 或 登录 后发表评论