From b80674bf2e72fba633cb85ac48062435d68032c5 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 8 Nov 2016 14:54:55 -0800 Subject: move twitter api to addon; there's still a bit of cleanup remaining, mostly dealing with abstracting the authentication calls and separating out the twitter authentication structure from the zot api. --- Zotlabs/Module/Api.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Module/Api.php') diff --git a/Zotlabs/Module/Api.php b/Zotlabs/Module/Api.php index 0f2ca1e47..a24748b59 100644 --- a/Zotlabs/Module/Api.php +++ b/Zotlabs/Module/Api.php @@ -3,9 +3,19 @@ namespace Zotlabs\Module; require_once('include/api.php'); +class Api extends \Zotlabs\Web\Controller { -class Api extends \Zotlabs\Web\Controller { + function init() { + $args = []; + call_hooks('api_register',$args); + + 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); + + return; + } function post() { if(! local_channel()) { -- cgit v1.2.3