quintodrome/main.go

20 lines
377 B
Go
Raw Normal View History

2016-02-23 14:41:35 -09:00
package main
import (
2017-04-01 05:47:14 -08:00
"github.com/cloudsonic/sonic-server/conf"
2020-01-20 13:35:04 -09:00
"github.com/cloudsonic/sonic-server/server"
2016-02-23 14:41:35 -09:00
)
func main() {
2020-01-08 06:25:23 -09:00
conf.Load()
2016-03-29 20:05:57 -08:00
2020-01-20 13:35:04 -09:00
if !conf.Sonic.DevDisableBanner {
server.ShowBanner()
}
2020-01-19 15:34:54 -09:00
a := CreateServer(conf.Sonic.MusicFolder)
a.MountRouter("/rest", CreateSubsonicAPIRouter())
a.MountRouter("/app", CreateAppRouter("/app"))
a.Run(":" + conf.Sonic.Port)
2016-02-23 14:41:35 -09:00
}