beego.go 278 字节
package beego

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/port/beego/middleware"
	_ "gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/port/beego/routers"
)

func init() {
	beego.InsertFilter("/*", beego.BeforeRouter, middleware.AllowCors())
}