deprecated-oc-search/main.go

18 lines
363 B
Go
Raw Normal View History

2023-08-26 22:04:56 +02:00
package main
import (
_ "oc-search/routers"
_ "oc-search/views"
beego "github.com/beego/beego/v2/server/web"
)
func main() {
beego.BConfig.WebConfig.Session.SessionOn = true
beego.SetStaticPath("/favicon.ico", "/static/favicon.ico")
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
beego.Run()
}