package Mojolicious::Plugin::QooxdooJsonrpc;
use Mojo::Base 'Mojolicious::Plugin';
use File::Spec::Functions qw(splitdir updir catdir file_name_is_absolute);
use Cwd qw(abs_path);
our $VERSION = '0.
available and compiles at startup time and not
# only on demand.
use MojoX::Dispatcher::Qooxdoo::Jsonrpc;
sub register {
my ($self, $app, $conf) = @_;
# Config
$conf ||= {};
my $roo
$conf->{services};
my $path = $conf->{path} || 'jsonrpc';
my $r = $app->routes;
$r->route($root.$path)->to(
controller => 'Jsonrpc',
action => 'dispatch',
na
Jsonrpc;
use strict;
use warnings;
use Mojo::JSON;
use Mojo::Base 'Mojolicious::Controller';
use Encode;
our $toUTF8 = find_encoding('utf8');
our $VERSION = '0.89';
has 'JSON' => sub { Mojo::JSON
use
# the data is not sent in the same place..
my $log = $self->app->log;
my $json = $self->JSON;
# send warnings to log file preserving the origin
local $SIG{__WARN__} = sub {
method ){
/^POST$/ && do {
# Data comes as JSON object, so fetch a reference to it
$data = $json->decode($self->req->body);
$id = $dat