byterock / mojolicious-plugin-authorization

A plugin to make Authorization a bit easier
Other
8 stars 8 forks source link

Allow extra data via conditional routing #15

Closed mattaltus closed 5 years ago

mattaltus commented 5 years ago

Added the ability to supply extra data by conditional routing.

e.g.

$r->route('/delete_all')->over(has_priv => ['delete_all', $extradata])->to('mycontroller#delete_all');
mattaltus commented 5 years ago

bump

byterock commented 5 years ago

Sorry forgot all about this one hiding on my pile of things to do will have to get a newer version out directly as there are a few other little things to fix up. Guess it it time I did it Give me another bump if I

mattaltus commented 5 years ago

Thanks very much.