...
|
...
|
@@ -34,7 +34,9 @@ func init() { |
|
|
filters.SecureKeyMap["token"] = "x-mmm-accesstoken"
|
|
|
web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
|
|
|
web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger))
|
|
|
web.InsertFilter("/*", web.BeforeExec, middleware.CheckAccessToken2())
|
|
|
web.InsertFilter("/v1/web/*", web.BeforeExec, middleware.CheckAccessToken2())
|
|
|
web.InsertFilter("/v1/app/*", web.BeforeExec, middleware.CheckAccessToken2())
|
|
|
web.InsertFilter("/v1/user/*", web.BeforeExec, middleware.CheckAccessToken2())
|
|
|
web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false))
|
|
|
web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler(
|
|
|
filters.WithEnableCheckTimestamp(false),
|
...
|
...
|
|