Catalyst-ControllerRole-At
view release on metacpan - search on metacpan
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;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.031 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )