mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
feat: add -help, simplified config loading
This commit is contained in:
parent
cc58642185
commit
828dc8f0f4
2 changed files with 12 additions and 47 deletions
4
main.go
4
main.go
|
@ -5,12 +5,12 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
conf.Load()
|
||||
|
||||
if !conf.Server.DevDisableBanner {
|
||||
ShowBanner()
|
||||
}
|
||||
|
||||
conf.Load()
|
||||
|
||||
a := CreateServer(conf.Server.MusicFolder)
|
||||
a.MountRouter("/rest", CreateSubsonicAPIRouter())
|
||||
a.MountRouter("/app", CreateAppRouter("/app"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue