Skip to content

Commit

Permalink
less neutral names
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 6, 2014
1 parent 65f80cd commit ca8de7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -519,9 +519,9 @@ The actual action code for this destination needs to return a true value or
the dispatch chain will be broken, this can be a very powerful tool for
authentication.

# /bar -> {cb => sub {...}}
# {controller => 'foo', action => 'bar'}
my $foo = $r->under('/' => sub {
# /blackjack -> {cb => sub {...}}
# {controller => 'hideout', action => 'blackjack'}
my $auth = $r->under('/' => sub {
my $c = shift;

# Authenticated
Expand All @@ -531,7 +531,7 @@ authentication.
$c->render(text => "You're not Bender.");
return undef;
});
$foo->get('/bar')->to('foo#bar');
$auth->get('/blackjack')->to('hideout#blackjack');

Broken dispatch chains can be continued by calling the method
L<Mojolicious::Controller/"continue">, this allows for example non-blocking
Expand Down

0 comments on commit ca8de7f

Please sign in to comment.