X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=share%2Flib%2FMyApp%2FController%2FRoot.pm.tt;h=24795f696f2c98dd2e0de2128ef933ac5dd490e2;hb=3d3e34a06be95dd678100234022700fe57f1fcdf;hp=bb717a3f5db559db1c46c5469be6d11ed85fa818;hpb=2ad364470c25e803c2b8394431490622d3fb9dd7;p=catagits%2FCatalyst-Devel.git diff --git a/share/lib/MyApp/Controller/Root.pm.tt b/share/lib/MyApp/Controller/Root.pm.tt index bb717a3..24795f6 100644 --- a/share/lib/MyApp/Controller/Root.pm.tt +++ b/share/lib/MyApp/Controller/Root.pm.tt @@ -20,10 +20,10 @@ __PACKAGE__->config(namespace => ''); =head1 METHODS -=cut - =head2 index +The root page (/) + =cut sub index :Path :Args(0) { @@ -33,6 +33,12 @@ sub index :Path :Args(0) { $c->response->body( $c->welcome_message ); } +=head2 default + +Standard 404 error page + +=cut + sub default :Path { my ( $self, $c ) = @_; $c->response->body( 'Page not found' );