11 Dec
2013
11 Dec
'13
3 a.m.
I already use the Dancer::Plugin::Auth::Extensible (which is very nice, thanks!) to protect my routes. I would like to be able to protect the routes generated with the resources keyword. I tried something like: resource user => get => sub { }, delete => require_role Admin => sub { }, ... Won't work. D:P:Auth::Extensible seems to call the coderef passed to it. I guess I would need the coderef returned? Any hint? Thanks! -- Jacques Lareau