mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
19 lines
377 B
Go
19 lines
377 B
Go
package main
|
|
|
|
import (
|
|
"github.com/cloudsonic/sonic-server/conf"
|
|
"github.com/cloudsonic/sonic-server/server"
|
|
)
|
|
|
|
func main() {
|
|
conf.Load()
|
|
|
|
if !conf.Sonic.DevDisableBanner {
|
|
server.ShowBanner()
|
|
}
|
|
|
|
a := CreateServer(conf.Sonic.MusicFolder)
|
|
a.MountRouter("/rest", CreateSubsonicAPIRouter())
|
|
a.MountRouter("/app", CreateAppRouter("/app"))
|
|
a.Run(":" + conf.Sonic.Port)
|
|
}
|