use CatalystX::Declare;
-controller_role TestApp::ControllerRole::Parameterized (Str :$message, Str :$base, Str :$part) {
+controller_role TestApp::ControllerRole::Parameterized (Str :$message, Str :$base, Str :$part, Str :$action) {
method get_message { $message }
final action complex as "$part/deep" {
$ctx->response->body( "$part/deep under $base" );
}
+
+ final action $action {
+ $ctx->response->body( "$action action" );
+ }
+
+ final action actionalias {
+ $self->$action($ctx);
+ }
}
}