作者 yangfu

权限验证、重置密码修改

... ... @@ -34,7 +34,7 @@ func init() {
filters.SecureKeyMap["token"] = "x-mmm-accesstoken"
//TODO:token验证改为 /v1
web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
web.InsertFilterChain("/v1/*", middleware.CheckAccessToken)
web.InsertFilterChain("/v1/app1/*", middleware.CheckAccessToken)
web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger))
web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false))
web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler(
... ...