X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FChainedActionsApp%2FController%2FRoot.pm;h=07d0d2e3283f97934dc1bae33cda935a560be7c0;hp=a4360872feff076a48aa762bd7d46e88c911b170;hb=13f911efd2cfb317ad1b41968a8c06c3f0a74f52;hpb=d4f76f02f299906d23b02bb4bb4007de437a8747 diff --git a/t/lib/ChainedActionsApp/Controller/Root.pm b/t/lib/ChainedActionsApp/Controller/Root.pm index a436087..07d0d2e 100644 --- a/t/lib/ChainedActionsApp/Controller/Root.pm +++ b/t/lib/ChainedActionsApp/Controller/Root.pm @@ -60,6 +60,22 @@ sub profile : Chained('profile_base') PathPart('') Args(1) { $c->response->body( "This is profile of " . $acc ); } +=head2 downloads + + This is a different test, this function is void, just to let following in the chain + to declare downloads as PathPart. + +=cut + +sub downloads : Chained('setup') PathPart('') CaptureArgs(0) { + my($self,$c) = @_; +} + +sub downloads_index : Chained('downloads') PathPart('downloads') Args(0) { + my($self,$c) = @_; + $c->response->body( "This is download index"); +} + sub default : Chained('setup') PathPart('') Args() { my ( $self, $c ) = @_; $c->response->body( 'Page not found' );