quintodrome/main.go

15 lines
271 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"
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-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
}