Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 21, 2013
1 parent f773f19 commit afe4a77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -243,8 +243,11 @@ Mojolicious::Routes - Always find your destination with routes!
use Mojolicious::Routes;
# Simple route
my $r = Mojolicious::Routes->new;
$r->route('/')->to(controller => 'blog', action => 'welcome');
# More advanced routes
my $blog = $r->under('/blog');
$blog->post('/list')->to('blog#list');
$blog->get('/:id' => [id => qr/\d+/] => {id => 23})->to('blog#show');
Expand Down

0 comments on commit afe4a77

Please sign in to comment.