package main import ( _ "hongze/hongze_chart_lib/routers" beego "github.com/beego/beego/v2/server/web" ) func main() { if beego.BConfig.RunMode == "dev" { beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" } beego.Run() }