X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestAppIndexDefault%2FController%2FDefaultAndPath.pm;fp=t%2Flib%2FTestAppIndexDefault%2FController%2FDefaultAndPath.pm;h=385361c551d6686c6d8876217aa54356f3b6cc4b;hp=0000000000000000000000000000000000000000;hb=05b47f2e6357bc7f1622e6b2cf730ad5bbeb993f;hpb=7b442de55a57592a0a9f09db2e85b135bb0c123f diff --git a/t/lib/TestAppIndexDefault/Controller/DefaultAndPath.pm b/t/lib/TestAppIndexDefault/Controller/DefaultAndPath.pm new file mode 100644 index 0000000..385361c --- /dev/null +++ b/t/lib/TestAppIndexDefault/Controller/DefaultAndPath.pm @@ -0,0 +1,15 @@ +package TestAppIndexDefault::Controller::DefaultAndPath; + +use base 'Catalyst::Controller'; + +sub default : Private { + my ($self, $c) = @_; + $c->res->body('default'); +} + +sub path_one_arg : Path('/') Args(1) { + my ($self, $c) = @_; + $c->res->body('path_one_arg'); +} + +1;