1 package TestApp::Controller::Action::ChildOf;
6 use base qw/Catalyst::Controller/;
10 sub foo :PathPart('childof/foo') :Captures(1) :ChildOf('/') { }
11 sub foo2 :PathPart('childof/foo2') :Captures(2) :ChildOf('/') { }
13 sub bar :PathPart('childof/bar') :ChildOf('/') { }
15 sub endpoint :PathPart('end') :ChildOf('/action/childof/foo') :Args(1) { }
16 sub endpoint2 :PathPart('end2') :ChildOf('/action/childof/foo2') :Args(2) { }
18 sub finale :ChildOf('bar') :Args { }
20 sub one :PathPart('childof/one') :ChildOf('/') :Captures(1) { }
21 sub two :PathPart('two') :ChildOf('/action/childof/one') :Captures(2) { }
23 sub three_end :PathPart('three') :ChildOf('two') :Args(3) { }
24 sub one_end :PathPart('childof/one') :ChildOf('/') :Args(1) { }
25 sub two_end :PathPart('two') :ChildOf('one') :Args(2) { }
27 sub multi1 :PathPart('childof/multi') :ChildOf('/') :Args(1) { }
28 sub multi2 :PathPart('childof/multi') :ChildOf('/') :Args(2) { }
32 my $out = join('; ', map { join(', ', @$_) }
33 ($c->req->captures, $c->req->args));