Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweaked Mojolicious::Lite keyword recipe
  • Loading branch information
kraih committed Dec 20, 2012
1 parent 8087b2b commit 9ad1a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1092,7 +1092,7 @@ require their own exporter module instead of a plugin.

our @EXPORT = ('get_post');

# Access the router through the application
# Add a route that only accepts GET and POST requests
sub get_post { caller->app->routes->any([qw(GET POST)] => @_) }

1;
Expand Down

0 comments on commit 9ad1a09

Please sign in to comment.