Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more consistent route examples
  • Loading branch information
kraih committed Jan 14, 2015
1 parent fd82bfa commit 4dc7887
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Mojolicious/Routes/Route.pm
Expand Up @@ -390,7 +390,9 @@ the current route.
=head2 new
my $r = Mojolicious::Routes::Route->new;
my $r = Mojolicious::Routes::Route->new('/:controller/:action');
my $r = Mojolicious::Routes::Route->new('/:action');
my $r = Mojolicious::Routes::Route->new('/:action', action => qr/\w+/);
my $r = Mojolicious::Routes::Route->new(format => 0);
Construct a new L<Mojolicious::Routes::Route> object and L</"parse"> pattern
if necessary.
Expand Down

0 comments on commit 4dc7887

Please sign in to comment.