- package main
- import (
- _ "eta/eta_forum_hub/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()
- }
|