summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-03-03 14:07:41 +0000
committerdakkar <dakkar@thenautilus.net>2018-03-03 14:07:41 +0000
commit5479bf5ed0eb85c8a283442f37d1a036beb27694 (patch)
treebede1c6b84ea97b72a14422c1af4fa6232b5ef1a
parentretrieval methods in Collection (diff)
downloadUltramarine-5479bf5ed0eb85c8a283442f37d1a036beb27694.tar.gz
Ultramarine-5479bf5ed0eb85c8a283442f37d1a036beb27694.tar.bz2
Ultramarine-5479bf5ed0eb85c8a283442f37d1a036beb27694.zip
use real top folders in controller
-rw-r--r--lib/Ultramarine/Controller.pm65
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;