Refactor App to use DI

This commit is contained in:
Deluan 2020-01-11 13:00:03 -05:00 committed by Deluan Quintão
parent 30ebbc1fa1
commit 408030eb6c
4 changed files with 28 additions and 25 deletions

View file

@ -11,8 +11,7 @@ func main() {
fmt.Printf("\nCloudSonic Server v%s\n\n", "0.2")
a := App{}
a.Initialize()
a := createApp(conf.Sonic.MusicFolder)
a.MountRouter("/rest/", initRouter().Routes())
a.Run(":" + conf.Sonic.Port)
}