Skip to content

Commit

Permalink
mention that under generates bridge routes in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 28, 2012
1 parent 752b455 commit 40732da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -512,9 +512,9 @@ additional information.

=head2 Bridges

Bridges can be used to share code with multiple nested routes, because unlike
normal nested routes, they always match and result in additional dispatch
cycles.
Bridge routes can be used to share code with multiple nested routes, because
unlike normal nested routes, they always match and result in additional
dispatch cycles.

# /foo -> undef
# /foo/bar -> {controller => 'foo', action => 'baz'}
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -521,8 +521,8 @@ is fine though.
=head2 Under
Authentication and code shared between multiple routes can be realized easily
with the C<under> statement. All following routes are only evaluated if the
C<under> callback returned a true value.
with bridge routes generated by the C<under> statement. All following routes
are only evaluated if the C<under> callback returned a true value.
use Mojolicious::Lite;
Expand Down

0 comments on commit 40732da

Please sign in to comment.