Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (9 sloc) 310 Bytes
<?php
require_once '../../vendor/autoload.php';
use Datto\JsonRpc;
use Demo\Api\Evaluator\DevicesEvaluator;
$evaluator = new DevicesEvaluator();
$server = new JsonRpc\Server($evaluator);
header('Content-Type: application/json');
$message = file_get_contents('php://input');
echo $server->reply($message);