Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $r = $self-routes;
- my $auth = $r->bridge('/')->to( cb => sub { return 1 } );
- # Change all $r->route definitions to 'bridge' from $auth
- # They should all 'just work'
- # Consider changing the 'return 1 to return' to test 'failure to auth'
- $auth->route('/')->to( 'example#welcome' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement