logger.go 374 字节
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers"
)

func init() {
	web.Router("/log", &controllers.LoggerController{}, "Get:Index")
	web.SetStaticPath("/static", constant.FileStatic)
}