X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestAppMatchSingleArg%2FController%2FRoot.pm;fp=t%2Flib%2FTestAppMatchSingleArg%2FController%2FRoot.pm;h=ab24f12a0b6e68ccd15649d45cc5c54ec3308224;hp=0000000000000000000000000000000000000000;hb=9dac01c784a1f27fe7bb110442d006f9919e9dc1;hpb=dd97c1ac48f275a692de1d2ce980e9d3155d78b9 diff --git a/t/lib/TestAppMatchSingleArg/Controller/Root.pm b/t/lib/TestAppMatchSingleArg/Controller/Root.pm new file mode 100644 index 0000000..ab24f12 --- /dev/null +++ b/t/lib/TestAppMatchSingleArg/Controller/Root.pm @@ -0,0 +1,19 @@ +package TestAppMatchSingleArg::Controller::Root; + +use strict; +use warnings; +use base 'Catalyst::Controller'; + +__PACKAGE__->config->{namespace} = ''; + +sub match_single : Path Args(1) { + my ($self, $c) = @_; + $c->res->body('Path Args(1)'); +} + +sub match_other : Path { + my ($self, $c) = @_; + $c->res->body('Path'); +} + +1;