Created InitialSetup method that handles all steps required for starting the server for the first time

This commit is contained in:
Deluan
2020-01-20 15:17:43 -05:00
parent 398dfd04fc
commit 9e5ffaaff4
6 changed files with 108 additions and 42 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import (
func CreateServer(musicFolder string) *server.Server {
dataStore := persistence.New()
scannerScanner := scanner.New(dataStore)
serverServer := server.New(scannerScanner)
serverServer := server.New(scannerScanner, dataStore)
return serverServer
}