diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-16 21:07:29 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-16 21:07:29 -0400 |
commit | b1e2ca00ce7375ffcbe5e927135c8892036e6bd6 (patch) | |
tree | 07ce453261f6493de7c901cfd8b4f0d9af85556d /jsonrpc.php | |
parent | 4514bc1d4b4abff23902e46da76e70f13a3647eb (diff) |
Rename Api classes
Diffstat (limited to 'jsonrpc.php')
-rw-r--r-- | jsonrpc.php | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/jsonrpc.php b/jsonrpc.php index d2163347..c0dc5c56 100644 --- a/jsonrpc.php +++ b/jsonrpc.php @@ -3,47 +3,47 @@ require __DIR__.'/app/common.php'; use JsonRPC\Server; -use Kanboard\Api\Auth; -use Kanboard\Api\Me; -use Kanboard\Api\Action; -use Kanboard\Api\App; -use Kanboard\Api\Board; -use Kanboard\Api\Column; -use Kanboard\Api\Category; -use Kanboard\Api\Comment; -use Kanboard\Api\File; -use Kanboard\Api\Link; -use Kanboard\Api\Project; -use Kanboard\Api\ProjectPermission; -use Kanboard\Api\Subtask; -use Kanboard\Api\Swimlane; -use Kanboard\Api\Task; -use Kanboard\Api\TaskLink; -use Kanboard\Api\User; -use Kanboard\Api\Group; -use Kanboard\Api\GroupMember; +use Kanboard\Api\AuthApi; +use Kanboard\Api\MeApi; +use Kanboard\Api\ActionApi; +use Kanboard\Api\AppApi; +use Kanboard\Api\BoardApi; +use Kanboard\Api\ColumnApi; +use Kanboard\Api\CategoryApi; +use Kanboard\Api\CommentApi; +use Kanboard\Api\FileApi; +use Kanboard\Api\LinkApi; +use Kanboard\Api\ProjectApi; +use Kanboard\Api\ProjectPermissionApi; +use Kanboard\Api\SubtaskApi; +use Kanboard\Api\SwimlaneApi; +use Kanboard\Api\TaskApi; +use Kanboard\Api\TaskLinkApi; +use Kanboard\Api\UserApi; +use Kanboard\Api\GroupApi; +use Kanboard\Api\GroupMemberApi; $server = new Server; $server->setAuthenticationHeader(API_AUTHENTICATION_HEADER); -$server->before(array(new Auth($container), 'checkCredentials')); +$server->before(array(new AuthApi($container), 'checkCredentials')); -$server->attach(new Me($container)); -$server->attach(new Action($container)); -$server->attach(new App($container)); -$server->attach(new Board($container)); -$server->attach(new Column($container)); -$server->attach(new Category($container)); -$server->attach(new Comment($container)); -$server->attach(new File($container)); -$server->attach(new Link($container)); -$server->attach(new Project($container)); -$server->attach(new ProjectPermission($container)); -$server->attach(new Subtask($container)); -$server->attach(new Swimlane($container)); -$server->attach(new Task($container)); -$server->attach(new TaskLink($container)); -$server->attach(new User($container)); -$server->attach(new Group($container)); -$server->attach(new GroupMember($container)); +$server->attach(new MeApi($container)); +$server->attach(new ActionApi($container)); +$server->attach(new AppApi($container)); +$server->attach(new BoardApi($container)); +$server->attach(new ColumnApi($container)); +$server->attach(new CategoryApi($container)); +$server->attach(new CommentApi($container)); +$server->attach(new FileApi($container)); +$server->attach(new LinkApi($container)); +$server->attach(new ProjectApi($container)); +$server->attach(new ProjectPermissionApi($container)); +$server->attach(new SubtaskApi($container)); +$server->attach(new SwimlaneApi($container)); +$server->attach(new TaskApi($container)); +$server->attach(new TaskLinkApi($container)); +$server->attach(new UserApi($container)); +$server->attach(new GroupApi($container)); +$server->attach(new GroupMemberApi($container)); echo $server->execute(); |