Skip to content

Commit

Permalink
more diverse examples for under
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 6, 2014
1 parent 7b379d4 commit 65f80cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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.

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

# Authenticated
Expand Down

0 comments on commit 65f80cd

Please sign in to comment.