2014-07-20 12:26:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require __DIR__.'/app/common.php';
|
|
|
|
|
2014-12-22 19:15:38 +01:00
|
|
|
$server = new JsonRPC\Server;
|
2015-08-16 17:04:56 +02:00
|
|
|
$server->setAuthenticationHeader(API_AUTHENTICATION_HEADER);
|
2015-09-08 22:16:28 +02:00
|
|
|
$server->before(array(new Api\Auth($container), 'checkCredentials'));
|
|
|
|
|
|
|
|
$server->attach(new Api\Me($container));
|
2015-08-16 17:04:56 +02:00
|
|
|
$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));
|
2015-04-21 17:56:16 +02:00
|
|
|
|
2014-07-20 12:26:15 +02:00
|
|
|
echo $server->execute();
|