Skip to content

Commit

Permalink
keep routes formatted the same
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 18, 2014
1 parent 4e08a92 commit 8874fc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.31 2014-08-18
5.31 2014-08-19
- Improved Mojolicious::Static to allow custom content types.

5.30 2014-08-17
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -639,8 +639,10 @@ information.

my $r = $self->routes;
$r->any('/')->to('login#index')->name('index');

my $logged_in = $r->under('/')->to('login#logged_in');
$logged_in->get('/protected')->to('login#protected');

$r->get('/logout')->to('login#logout');
}

Expand Down

0 comments on commit 8874fc0

Please sign in to comment.