From fabf278633b40999640f9bfbb2523c14f42cb1fb Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 8 Nov 2016 16:55:29 -0800 Subject: more api re-org --- Zotlabs/Module/Api.php | 6 ++-- include/api_zot.php | 76 ++++++++++++++++++++++++++------------------------ 2 files changed, 44 insertions(+), 38 deletions(-) diff --git a/Zotlabs/Module/Api.php b/Zotlabs/Module/Api.php index a24748b59..a2a1aac1d 100644 --- a/Zotlabs/Module/Api.php +++ b/Zotlabs/Module/Api.php @@ -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; } diff --git a/include/api_zot.php b/include/api_zot.php index 38919cb95..42b8315ad 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -1,11 +1,47 @@