Skip to content

Commit

Permalink
slightly better hook example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 4, 2013
1 parent 1191b0e commit 17d47f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -443,7 +443,7 @@ requests indiscriminately.
# Dispatchers will not run if there's already a response code defined
$app->hook(before_dispatch => sub {
my $c = shift;
$c->render(text => 'Skipped dispatchers!')
$c->render(text => 'Skipped static file server and router!')
if $c->req->url->path->to_route =~ /do_not_dispatch/;
});
Expand Down

0 comments on commit 17d47f9

Please sign in to comment.