[dancer-users] Plugin Adaptor

Russell Jenkins russell.jenkins at strategicdata.com.au
Mon Sep 21 05:11:05 BST 2015


On 19/09/2015 4:52 am, Rick Leir wrote:
> Can you help me with the Plugin Adaptor?
>
>     get '/' => sub {
>         if ( -d service("capdir") ) {
>             return {message => 'Hello World'};
>         }
>         else {
>             return ({message => service});
>         }

There are two calls to `service` in your route code. The second one
(within the else block) has no name argument.

Hope that helps,
   Russell.


More information about the dancer-users mailing list