summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2017-12-25 16:04:30 +0000
committerdakkar <dakkar@thenautilus.net>2017-12-25 16:04:30 +0000
commitef8797ac685652084bdf9e050a16a231683a4e26 (patch)
tree6727b2ec66347fb26f4c80ea2b10940900a36f33
parentmetadata (diff)
downloadUltramarine-ef8797ac685652084bdf9e050a16a231683a4e26.tar.gz
Ultramarine-ef8797ac685652084bdf9e050a16a231683a4e26.tar.bz2
Ultramarine-ef8797ac685652084bdf9e050a16a231683a4e26.zip
submethod is probably the wrong thing here
-rw-r--r--lib/Ultramarine/Controller.pm68
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Ultramarine/Controller.pm6 b/lib/Ultramarine/Controller.pm6
index e864b00..208a50b 100644
--- a/lib/Ultramarine/Controller.pm6
+++ b/lib/Ultramarine/Controller.pm6
@@ -42,7 +42,7 @@ class Ultramarine::Controller {
}
}
- submethod inner-routes() {
+ method inner-routes() {
return route {
# this needs to be here, not in the Server because its
# short-circuited "unauthorised" response will be emited
@@ -55,7 +55,7 @@ class Ultramarine::Controller {
post -> 'getLicense' {
respond [
:status<ok>,
- license => [ |%($!license.status) ],
+ license => [ |%($.license.status) ],
],
}
post -> 'getMusicFolders' {
@@ -68,10 +68,10 @@ class Ultramarine::Controller {
}
# this is clearly not a Subsonic method
post -> 'dakkarList' {
- await $!collection.is-ready;
+ await $.collection.is-ready;
respond [
:status<ok>,
- songs => $!collection.all-songs,
+ songs => $.collection.all-songs,
];
}
}