Advertisement
Guest User

Untitled

a guest
Dec 31st, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. my $r = $self-routes;
  2.  
  3. my $auth = $r->bridge('/')->to( cb => sub { return 1 } );
  4.  
  5. # Change all $r->route definitions to 'bridge' from $auth
  6. # They should all 'just work'
  7. # Consider changing the 'return 1 to return' to test 'failure to auth'
  8. $auth->route('/')->to( 'example#welcome' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement