Hello,

Is it possible to create a no request method in Dancer2 module ?

get qr{/(\d+)/members} => sub {
    my ($department) = splat;
    ...
    my $sth = database('foo')->prepare($queryString);
    ...
   # call my method doit();
    my $data = doit()...
}

sub doit {
    # I want to retrieve some data from my database 'foo'

    return $data
}

Thanks,

Jean-Marc

_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to