Last active
February 12, 2018 20:03
-
-
Save hesco/c615cfd9cb0376cdd57f2fa6418d8035 to your computer and use it in GitHub Desktop.
Given this revised sample code below, I have this question: (1) will /v1/app/foo/add route be protected by the user_sessions#logged_in authentication of the parent application?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub startup { | |
<snip> | |
my $auth = $r->under('/v1/app')->to('user_sessions#logged_in'); | |
<snip> | |
my $r_foo = $app->plugin(Mount => {$auth->any('/foo') => '/home/sri/myapp.pl'}); | |
$r_foo->get('/add')->to('example#foo'); | |
<snip> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment