1 package Catalyst::DispatchType::Index;
4 use base qw/Catalyst::DispatchType/;
8 Catalyst::DispatchType::Index - Index DispatchType
18 =head2 $self->match( $c, $path )
20 Check if there's an index action for a given path, and set it up to use it
26 my ( $self, $c, $path ) = @_;
27 return if @{ $c->req->args };
28 my $result = $c->get_action( 'index', $path );
30 if ($result && $result->match($c)) {
32 $c->namespace( $result->namespace );
33 $c->req->action('index');
34 $c->req->match( $c->req->path );
42 Sebastian Riedel, C<sri@cpan.org>
46 This program is free software, you can redistribute it and/or modify it under
47 the same terms as Perl itself.