router.go 411 字节
package routers

import (
	"github.com/astaxie/beego"
	"openapi/controllers"
	"openapi/controllers/v1"
)

var nsV1 *beego.Namespace

func init() {
	nsVod := beego.NewNamespace("vod", beego.NSBefore(controllers.LogRequestData), beego.NSBefore(controllers.AllowOption), beego.NSInclude(&v1.VodController{}))

	beego.SetStaticPath("/log", beego.AppConfig.String("aliyun_logs_access"))
	beego.AddNamespace(nsVod)
}