X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FRoot.pm;h=53d79e2bacbe55924651301f5e3f1e7df5b1cae8;hb=873b98ee118b378ace23ffdba0b440bcefdfc8c1;hp=a9cbbda967b33e3e88b10381838299e3bfdb36f9;hpb=81e75875ca7cea9004783a0c142040081da630d8;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm index a9cbbda..53d79e2 100644 --- a/t/lib/TestApp/Controller/Root.pm +++ b/t/lib/TestApp/Controller/Root.pm @@ -6,4 +6,18 @@ __PACKAGE__->config->{namespace} = ''; sub chain_root_index : Chained('/') PathPart('') Args(0) { } +sub zero : Path('0') { + my ( $self, $c ) = @_; + $c->res->header( 'X-Test-Class' => ref($self) ); + $c->response->content_type('text/plain; charset=utf-8'); + $c->forward('TestApp::View::Dump::Request'); +} + +sub localregex : LocalRegex('^localregex$') { + my ( $self, $c ) = @_; + $c->res->header( 'X-Test-Class' => ref($self) ); + $c->response->content_type('text/plain; charset=utf-8'); + $c->forward('TestApp::View::Dump::Request'); +} + 1;