diff options
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 +); |