...
|
...
|
@@ -8,6 +8,7 @@ import ( |
|
|
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
"github.com/linmadan/egglib-go/web/beego/filters"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log"
|
|
|
_ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/routers"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -41,4 +42,6 @@ func init() { |
|
|
time.Local = timeLocal
|
|
|
|
|
|
web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
|
|
|
web.InsertFilter("/*", web.BeforeExec, filters.CreateRequstLogFilter(log.Logger))
|
|
|
|
|
|
} |
...
|
...
|
|