1 package Catalyst::DispatchType::Index;
4 use base qw/Catalyst::DispatchType/;
8 Catalyst::DispatchType::Index - Index DispatchType
20 =item $self->match( $c, $path )
25 my ( $self, $c, $path ) = @_;
26 return if @{ $c->req->args };
27 my $result = @{ $c->get_action( 'index', $path ) || [] }[-1];
29 # Find default on namespace or super
31 $c->action( $result->[0] );
32 $c->namespace( $c->req->path );
33 $c->req->action('index');
34 $c->req->match( $c->req->path );
44 Sebastian Riedel, C<sri@cpan.org>
48 This program is free software, you can redistribute it and/or modify it under
49 the same terms as Perl itself.