<div dir="ltr"><div><div>I already use the Dancer::Plugin::Auth::Extensible (which is very nice, thanks!) to protect my routes.<br>I would like to be able to protect the routes generated with the resources keyword.<br><br>

I tried something like:<br><br>resource user =><br>  get     => sub { },<br>  delete => require_role Admin => sub { },<br>...<br><br></div><div>Won't work.<br></div><div><br>D:P:Auth::Extensible seems to call the coderef passed to it.<br>

I guess I would need the coderef returned?<br><br>Any hint?<br><br>Thanks!<br><br></div>--<br></div>Jacques Lareau<br></div>