mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 04:57:37 +03:00
Simplify API routes mounting
This commit is contained in:
parent
5acc9c7a22
commit
48b465f2fb
2 changed files with 11 additions and 3 deletions
2
main.go
2
main.go
|
@ -12,6 +12,6 @@ func main() {
|
|||
fmt.Printf("\nCloudSonic Server v%s\n\n", "0.2")
|
||||
|
||||
a := createApp(conf.Sonic.MusicFolder)
|
||||
a.MountRouter("/rest/", initRouter().Routes())
|
||||
a.MountRouter("/rest/", initRouter())
|
||||
a.Run(":" + conf.Sonic.Port)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue