mirror of
https://github.com/Fishwaldo/Foreman-Gateway.git
synced 2025-03-15 19:31:26 +00:00
16 lines
329 B
Go
16 lines
329 B
Go
package main
|
|
|
|
import (
|
|
_ "Foreman-Gateway/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.BConfig.WebConfig.Session.SessionOn = true
|
|
beego.Run()
|
|
}
|