NAME
MojoX::Dispatcher::Qooxdoo::Jsonrpc - Dispatcher for Qooxdoo Json Rpc Calls
SYNOPSIS
# lib/your-application.pm
sub startup {
my $self = shift;
# choose your directory for services:
use lib ('qooxdoo-services');
# use all services you want to use
# (and omit everything you don't want to expose)
use Test;
# instantiate all services
my $services= {
Test => new Test(),
};
# add a route to the Qooxdoo dispatcher and route to it
my $r = $self->routes;
$r->route('/qooxdoo') ->
to('
Jsonrpc#handle_request',
services => $services,
namespace => 'MojoX::Dispatcher::Qooxdoo'
);
}
DESCRIPTION
MojoX::Dispatcher::Qooxdoo::Jsonrpc dispatches incoming rpc requests from a qooxdoo application to your services and renders a (hopefully) valid json reply.
METHODS
MojoX::Dispatcher::Qooxdoo::Jsonrpc implements the following new ones.