POE Paste with lovely alien head...

No paste!

from Someone at
I have two routes $auth = $r->

format options below
I have two routes

        $auth =  $r->under( \&auth )
	$auth->get( "/test",   { level => 'user' }  )->to( "C#A1" );
	$auth->get( "/secure", { level => 'admin' } )->to( "C#A2" );

I use &under to check access level. but when subroutine is called it has not yet { level } value.
The { level } will be available only at action.

How better pass to &auth function required user level for target route?

perl stuff: (might be helpful for others but not perfect)

Valid HTML 4.01!

Pastebot is powered by POE.