quintodrome/main.go

18 lines
267 B
Go
Raw Normal View History

2016-02-23 14:41:35 -09:00
package main
import (
2016-03-11 17:14:32 -09:00
"fmt"
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-08 06:00:04 -09:00
fmt.Printf("\nCloudSonic Server v%s\n\n", "0.2")
2016-03-29 20:05:57 -08:00
2020-01-11 09:00:03 -09:00
a := createApp(conf.Sonic.MusicFolder)
2020-01-11 09:21:43 -09:00
a.MountRouter("/rest/", initRouter())
a.Run(":" + conf.Sonic.Port)
2016-02-23 14:41:35 -09:00
}