navidrome/main.go

15 lines
270 B
Go
Raw Normal View History

2016-02-24 00:41:35 +01:00
package main
import (
_ "github.com/deluan/gosonic/routers"
"github.com/astaxie/beego"
)
func main() {
if beego.BConfig.RunMode == "dev" {
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
}
beego.Run()
}