more api re-org

This commit is contained in:
zotlabs
2016-11-08 16:55:29 -08:00
parent 743cfa13fd
commit fabf278633
2 changed files with 44 additions and 38 deletions

View File

@@ -7,13 +7,15 @@ class Api extends \Zotlabs\Web\Controller {
function init() {
$args = [];
call_hooks('api_register',$args);
zot_api_init();
api_register_func('api/client/register', 'api_client_register', false);
api_register_func('api/oauth/request_token', 'api_oauth_request_token', false);
api_register_func('api/oauth/access_token', 'api_oauth_access_token', false);
$args = [];
call_hooks('api_register',$args);
return;
}