Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $r = $self->routes;
- # main route, check credentials
- my $api = $r->under('/api')->to('main#get_permissions');
- $r->add_condition(match_perm => \&match_perm);
- $router->get('/test')->over(match_perm => ['can_test'])->to('main#test');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement