summaryrefslogtreecommitdiff
path: root/jsonrpc.php
blob: 6c4b9d3db0ac3504481a29ffaa8153300083fce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

require __DIR__.'/app/common.php';

$server = new JsonRPC\Server;
$server->setAuthenticationHeader(API_AUTHENTICATION_HEADER);
$server->before('authentication');
$server->attach(new Api\Action($container));
$server->attach(new Api\App($container));
$server->attach(new Api\Board($container));
$server->attach(new Api\Category($container));
$server->attach(new Api\Comment($container));
$server->attach(new Api\File($container));
$server->attach(new Api\Link($container));
$server->attach(new Api\Project($container));
$server->attach(new Api\ProjectPermission($container));
$server->attach(new Api\Subtask($container));
$server->attach(new Api\Swimlane($container));
$server->attach(new Api\Task($container));
$server->attach(new Api\TaskLink($container));
$server->attach(new Api\User($container));

echo $server->execute();