diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2013-03-02 16:21:50 +0100 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2013-03-02 16:21:50 +0100 |
commit | 165540d34652fb895cb7f29c818fb3427bfba8c4 (patch) | |
tree | fcce5b92ace80cabff079f7801f2207f2491523e /appinfo/routes.php | |
parent | d6e8bd9cf2ec194e13bff3bdc5381f2919d07a17 (diff) |
prototype of business layer for api
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 21c1de90d..9d232819a 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -200,3 +200,15 @@ $this->create('news_ajax_importOPML', '/import')->action( callAjaxController('NewsAjaxController', 'uploadOPML', $params); } ); + + +/** + * External API for folders + */ +\OCP\API::register( + 'get', + '/news/folders', + array('OCA\News\API_Folder ', 'getAll'), + 'news', + \OC_API::USER_AUTH +); |