summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index 6c4b9d3d..adeb4ac4 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -4,7 +4,9 @@ require __DIR__.'/app/common.php';
$server = new JsonRPC\Server;
$server->setAuthenticationHeader(API_AUTHENTICATION_HEADER);
-$server->before('authentication');
+$server->before(array(new Api\Auth($container), 'checkCredentials'));
+
+$server->attach(new Api\Me($container));
$server->attach(new Api\Action($container));
$server->attach(new Api\App($container));
$server->attach(new Api\Board($container));