Add scan command

This commit is contained in:
Deluan
2020-07-02 20:08:41 -04:00
committed by Deluan Quintão
parent 8181aba61f
commit 3a7d70c908
4 changed files with 61 additions and 4 deletions
+6
View File
@@ -25,6 +25,12 @@ func CreateServer(musicFolder string) *server.Server {
return serverServer
}
func CreateScanner(musicFolder string) *scanner.Scanner {
dataStore := persistence.New()
scannerScanner := scanner.New(dataStore)
return scannerScanner
}
func CreateAppRouter() *app.Router {
dataStore := persistence.New()
router := app.New(dataStore)