Skip to content

Commit

Permalink
improved bridge example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 22, 2011
1 parent 8cc7655 commit 6dea64e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -504,6 +504,7 @@ will be broken, this makes bridges a very powerful tool for authentication.
return 1 if $self->req->headers->header('X-Bender');

# Not authenticated
$self->render(text => "You're not Bender!");
return;
});
$foo->route('/bar')->to(controller => 'foo', action => 'bar');
Expand Down

0 comments on commit 6dea64e

Please sign in to comment.