From f595fb2786d884dbaf7ec87d53cee920a0655f0e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 29 Jul 2015 17:42:48 -0400 Subject: Add first draft of the user api --- jsonrpc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jsonrpc.php') 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)); -- cgit v1.2.3