Add first draft of the user api

This commit is contained in:
Frederic Guillot
2015-07-29 17:42:48 -04:00
parent 2eeb58ae03
commit f595fb2786
22 changed files with 763 additions and 78 deletions

View File

@@ -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));