diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-29 17:42:48 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-29 17:42:48 -0400 |
commit | f595fb2786d884dbaf7ec87d53cee920a0655f0e (patch) | |
tree | 0da808ef2f679affa51eff80e172787098c13731 /jsonrpc.php | |
parent | 2eeb58ae0321f584652714080649302c3f83a831 (diff) |
Add first draft of the user api
Diffstat (limited to 'jsonrpc.php')
-rw-r--r-- | jsonrpc.php | 4 |
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)); |