Catalyst-ControllerRole-At
view release on metacpan or search on metacpan
package MyApp::Controller::Example;
use Moose;
use MooseX::MethodAttributes;
extends 'Catalyst::Controller';
sub root :At($controller/...) { }
sub endpoint :Via(root) At({id}) {
my ($self, $c, $id) = @_;
}
sub endpoin2 :Under(root) At({id}/{@}) {
my ($self, $c, @args) = @_;
}
__PACKAGE__->meta->make_immutable;
package MyApp::Controller::Example;
use Moose;
use MooseX::MethodAttributes;
extends 'Catalyst::Controller';
sub root Chained(/) PathPrefix CaptureArgs(0) { }
sub endpoint :Chained(root) PathPrefix('') Args(1) {
my ($self, $c, $id) = @_;
}
sub endpoin2 :Chained(root) PathPrefix('') Args {
my ($self, $c, @args) = @_;
}
__PACKAGE__->meta->make_immutable;
( run in 0.709 second using v1.01-cache-2.11-cpan-2b1a40005be )