Hi all,

If I do this:

    use Dancer ':syntax';
    use Dancer::Plugin::Weborama::Authentication;

    prefix '/companyname' => sub {
        post '/bidder' => sub { ... };
    };

I would very much like my Authentication plugin to register a 'before' hook which only fires if the /companyname prefix is set. What's the best way of doing this?

Cheers,
Ovid
--
Live and work overseas - http://overseas-exile.blogspot.com/
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://blogs.perl.org/users/ovid/
Twitter - http://twitter.com/OvidPerl/