diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-08 14:54:55 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-08 14:54:55 -0800 |
commit | b80674bf2e72fba633cb85ac48062435d68032c5 (patch) | |
tree | f3ceb5db374b5e1b85e581d0b2817ff8d4de487d /Zotlabs/Module | |
parent | f74f7d543e8ad788a8ae188a5acb0ad076a02941 (diff) | |
download | volse-hubzilla-b80674bf2e72fba633cb85ac48062435d68032c5.tar.gz volse-hubzilla-b80674bf2e72fba633cb85ac48062435d68032c5.tar.bz2 volse-hubzilla-b80674bf2e72fba633cb85ac48062435d68032c5.zip |
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.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Api.php | 12 |
1 files changed, 11 insertions, 1 deletions
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()) { |