18 lines
363 B
Go
18 lines
363 B
Go
|
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()
|
||
|
}
|