...
|
...
|
@@ -9,9 +9,10 @@ import ( |
|
|
|
|
|
func init() {
|
|
|
beego.InsertFilter("/*", beego.BeforeExec, middleware.CreateRequestBodyFilter())
|
|
|
beego.InsertFilter("/*", beego.BeforeExec, middleware.CreateRequstLogFilter(Logger))
|
|
|
beego.InsertFilter("/*", beego.AfterExec, middleware.CreateResponseLogFilter(Logger), false)
|
|
|
|
|
|
beego.InsertFilter("/v1/*", beego.BeforeExec, middleware.CheckJWTToken)
|
|
|
beego.InsertFilter("/v2/*", beego.BeforeExec, middleware.CheckJWTToken)
|
|
|
|
|
|
beego.InsertFilter("/*", beego.BeforeExec, middleware.CreateRequstLogFilter(Logger))
|
|
|
beego.InsertFilter("/*", beego.AfterExec, middleware.CreateResponseLogFilter(Logger), false)
|
|
|
} |
...
|
...
|
|