Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $authenticated = $r->any('/')->to(cb => sub {
- my $self = shift;
- $self->get('main#hate') and return 0 unless($self->is_user_authenticated);
- $self->get('main#love') and return 1;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement