oc-discovery/main.go
2023-03-07 13:29:08 +01:00

19 lines
363 B
Go

package main
import (
_ "oc-discovery/routers"
"github.com/beego/beego/logs"
beego "github.com/beego/beego/v2/server/web"
)
func main() {
log := logs.NewLogger(10000)
log.SetLogger("console")
if beego.BConfig.RunMode == "dev" {
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
}
beego.Run()
}