Files
Kanboard-Prod/jsonrpc.php
Frederic Guillot e32f26d048 API refactoring
2015-05-23 21:44:33 -04:00

22 lines
729 B
PHP

<?php
require __DIR__.'/app/common.php';
$server = new JsonRPC\Server;
$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\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();