From 165540d34652fb895cb7f29c818fb3427bfba8c4 Mon Sep 17 00:00:00 2001 From: Alessandro Cosentino Date: Sat, 2 Mar 2013 16:21:50 +0100 Subject: prototype of business layer for api --- appinfo/routes.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'appinfo/routes.php') 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 +); -- cgit v1.2.3