> 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.