Skip to content

Commit

Permalink
no need to mention request methods in bridge description
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 21, 2013
1 parent e675e01 commit 4610f77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojolicious/Routes/Route.pm
Expand Up @@ -345,8 +345,7 @@ 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 matching all HTTP request methods with optional pattern
and restrictive placeholders.
Generate bridge route with optional pattern and restrictive placeholders.
my $auth = $r->bridge('/user')->to('user#auth');
$auth->get('/show')->to('#show');
Expand Down

0 comments on commit 4610f77

Please sign in to comment.