Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. my $r = $self->routes;
  2. my $admin_auth = $r->under('/admin')->to('Login#is_authenticated_superuser');
  3.  
  4. # In a loop somewhere down the road
  5. $admin_auth->$http_method($route_uri)->
  6. to(namespace => '', action => $class_method)->name($route_name);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement