Group
Extension

Matches 2

MojoX-Dispatcher-Qooxdoo-Jsonrpc ( M/MB/MBP/MojoX-Dispatcher-Qooxdoo-Jsonrpc-0.89.tar.gz, MBP, 2012; MetaCPAN )
MojoX-Dispatcher-Qooxdoo-Jsonrpc/lib/Mojolicious/Plugin/QooxdooJsonrpc.pm ( view source; MetaCPAN )
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
MojoX-Dispatcher-Qooxdoo-Jsonrpc ( M/MB/MBP/MojoX-Dispatcher-Qooxdoo-Jsonrpc-0.89.tar.gz, MBP, 2012; MetaCPAN )
MojoX-Dispatcher-Qooxdoo-Jsonrpc/lib/MojoX/Dispatcher/Qooxdoo/Jsonrpc.pm ( view source; MetaCPAN )
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

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.