Skip to content

Commit

Permalink
better descriptions for route and bridge methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 21, 2013
1 parent 6608fc3 commit e675e01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Mojolicious/Routes/Route.pm
Expand Up @@ -345,7 +345,8 @@ also the L<Mojolicious::Lite> tutorial for more argument variations.
my $bridge = $r->bridge('/:action', action => qr/\w+/);
my $bridge = $r->bridge(format => 0);
Generate bridge route.
Generate bridge route matching all HTTP request methods with optional pattern
and restrictive placeholders.
my $auth = $r->bridge('/user')->to('user#auth');
$auth->get('/show')->to('#show');
Expand Down Expand Up @@ -519,7 +520,8 @@ The L<Mojolicious::Routes> object this route is an descendent of.
my $route = $r->route('/:action', action => qr/\w+/);
my $route = $r->route(format => 0);
Generate route matching all HTTP request methods.
Generate route matching all HTTP request methods with optional pattern and
restrictive placeholders.
=head2 to
Expand Down

0 comments on commit e675e01

Please sign in to comment.