feat: add multi folder support

closes #50
This commit is contained in:
sentriz
2021-11-06 21:56:01 +00:00
parent fa587fc7de
commit 40cd031b05
32 changed files with 743 additions and 605 deletions

No files matched your search

@@ -2,6 +2,7 @@ package ctrlsubsonic
import (
"net/url"
"path/filepath"
"testing"
_ "github.com/jinzhu/gorm/dialects/sqlite"
@@ -13,6 +14,8 @@ func TestGetIndexes(t *testing.T) {
runQueryCases(t, contr, contr.ServeGetIndexes, []*queryCase{
{url.Values{}, "no_args", false},
{url.Values{"musicFolderId": {filepath.Join(m.TmpDir(), "m-0")}}, "with_music_folder_1", false},
{url.Values{"musicFolderId": {filepath.Join(m.TmpDir(), "m-1")}}, "with_music_folder_2", false},
})
}