navidrome/main.go
Deluan 7e65bb8f20 refactor: better integration between db and persistence packages
Will address support for different DBs in the future (+1 squashed commit)
Squashed commits:
[a014757] refactor: better integration between `db` and `persistence` packages
2020-02-01 17:23:03 -05:00

20 lines
381 B
Go

package main
import (
"github.com/deluan/navidrome/conf"
"github.com/deluan/navidrome/db"
)
func main() {
if !conf.Server.DevDisableBanner {
ShowBanner()
}
conf.Load()
db.EnsureLatestVersion()
a := CreateServer(conf.Server.MusicFolder)
a.MountRouter("/rest", CreateSubsonicAPIRouter())
a.MountRouter("/app", CreateAppRouter("/app"))
a.Run(":" + conf.Server.Port)
}