Catalyst-ControllerRole-At
view release on metacpan or search on metacpan
391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428package
MyApp::Controller::Example;
use
Moose;
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;
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.248 second using v1.01-cache-2.11-cpan-e5176c747c2 )