mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Will address support for different DBs in the future (+1 squashed commit) Squashed commits: [a014757] refactor: better integration between `db` and `persistence` packages
20 lines
381 B
Go
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)
|
|
}
|