From ef8797ac685652084bdf9e050a16a231683a4e26 Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 25 Dec 2017 16:04:30 +0000 Subject: submethod is probably the wrong thing here --- lib/Ultramarine/Controller.pm6 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Ultramarine/Controller.pm6') 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, - 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, - songs => $!collection.all-songs, + songs => $.collection.all-songs, ]; } } -- cgit v1.2.3