...
|
...
|
@@ -9,8 +9,8 @@ import ( |
|
|
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
"github.com/linmadan/egglib-go/web/beego/filters"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
|
|
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
|
|
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/routers"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -34,7 +34,7 @@ func init() { |
|
|
web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
|
|
|
web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(log.Logger))
|
|
|
web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false))
|
|
|
web.InsertFilter("/v1/app1/*", web.BeforeExec, filters.SecureHandler(
|
|
|
web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler(
|
|
|
filters.WithEnableCheckTimestamp(false),
|
|
|
filters.WithOnInvalidRequest(func(ctx *context.Context) {
|
|
|
headerData, _ := json.Marshal(ctx.Input.Context.Request.Header)
|
...
|
...
|
|