X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestAppMatchSingleArg%2FController%2FRoot.pm;fp=t%2Flib%2FTestAppMatchSingleArg%2FController%2FRoot.pm;h=d00b6ae33d71221d59cd90c7daf1ff38bccbd892;hb=4a41d5d1ec3187cc41e15767b21c14b2aee31740;hp=0000000000000000000000000000000000000000;hpb=2757db2c7c600c8a0b8e2b4366f38c97804c2844;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestAppMatchSingleArg/Controller/Root.pm b/t/lib/TestAppMatchSingleArg/Controller/Root.pm new file mode 100644 index 0000000..d00b6ae --- /dev/null +++ b/t/lib/TestAppMatchSingleArg/Controller/Root.pm @@ -0,0 +1,24 @@ +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'); +} + +sub match_two : Path Args(2) { + my ($self, $c) = @_; + $c->res->body('Path Args(2)'); +} + +1;