navidrome/main.go
2016-03-01 20:42:20 -05:00

15 lines
306 B
Go

package main
import (
_ "github.com/deluan/gosonic/conf"
"github.com/astaxie/beego"
)
func main() {
beego.BConfig.Log.FileLineNum = false
if beego.BConfig.RunMode == "dev" {
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
}
beego.Run()
}