nuked tabs
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / ChildOf.pm
CommitLineData
141459fa 1package TestApp::Controller::Action::ChildOf;
2
3use strict;
4use warnings;
5
6use base qw/Catalyst::Controller/;
7
8sub begin :Private { }
9
10sub foo :PathPart('childof/foo') :Captures(1) :ChildOf('/') { }
11
12sub bar :PathPart('childof/bar') :ChildOf('/') { }
13
14sub endpoint :PathPart('end') :ChildOf('/action/childof/foo') :Args(1) { }
15
16sub finale :ChildOf('bar') :Args { }
17
18sub end :Private {
19 my ($self, $c) = @_;
20 my $out = join('; ', map { join(', ', @$_) }
21 ($c->req->captures, $c->req->args));
22 $c->res->body($out);
23}
24
251;