正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -34,7 +34,7 @@ func init() { | @@ -34,7 +34,7 @@ func init() { | ||
34 | filters.SecureKeyMap["token"] = "x-mmm-accesstoken" | 34 | filters.SecureKeyMap["token"] = "x-mmm-accesstoken" |
35 | //TODO:token验证改为 /v1 | 35 | //TODO:token验证改为 /v1 |
36 | web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) | 36 | web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) |
37 | - web.InsertFilterChain("/v1/*", middleware.CheckAccessToken) | 37 | + web.InsertFilterChain("/v1/app1/*", middleware.CheckAccessToken) |
38 | web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger)) | 38 | web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger)) |
39 | web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false)) | 39 | web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false)) |
40 | web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler( | 40 | web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler( |
-
请 注册 或 登录 后发表评论