diff options
author | dakkar <dakkar@thenautilus.net> | 2018-03-03 14:07:41 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-03-03 14:07:41 +0000 |
commit | 5479bf5ed0eb85c8a283442f37d1a036beb27694 (patch) | |
tree | bede1c6b84ea97b72a14422c1af4fa6232b5ef1a | |
parent | retrieval methods in Collection (diff) | |
download | Ultramarine-5479bf5ed0eb85c8a283442f37d1a036beb27694.tar.gz Ultramarine-5479bf5ed0eb85c8a283442f37d1a036beb27694.tar.bz2 Ultramarine-5479bf5ed0eb85c8a283442f37d1a036beb27694.zip |
use real top folders in controller
-rw-r--r-- | lib/Ultramarine/Controller.pm6 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Ultramarine/Controller.pm6 b/lib/Ultramarine/Controller.pm6 index 5e18b48..c66e839 100644 --- a/lib/Ultramarine/Controller.pm6 +++ b/lib/Ultramarine/Controller.pm6 @@ -72,8 +72,9 @@ class Ultramarine::Controller { respond [ :status<ok>, musicFolders => [ - musicFolder => [ :id<0>, :name<Music> ], - ] + $.collection.top-folders.map: + { musicFolder => [ id => $^d.id, name => $^d.name ] }, + ] ], } get $getMusicFolders; |