summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2013-03-02 19:50:33 +0100
committerAlessandro Cosentino <cosenal@gmail.com>2013-03-02 19:50:33 +0100
commit4902253e9c8aac706091c6337391153b02923689 (patch)
tree3012e106d477a83e718ea42741c445895922df8e /appinfo/routes.php
parent165540d34652fb895cb7f29c818fb3427bfba8c4 (diff)
prototype for business layer for feed
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 9d232819a..57b8cb02e 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -203,12 +203,12 @@ $this->create('news_ajax_importOPML', '/import')->action(
/**
- * External API for folders
+ * External API
*/
\OCP\API::register(
- 'get',
- '/news/folders',
- array('OCA\News\API_Folder ', 'getAll'),
- 'news',
- \OC_API::USER_AUTH
+ 'get', '/news/feeds', array('OCA\News\API_Feed', 'getAll'), 'news', \OC_API::USER_AUTH
);
+
+\OCP\API::register(
+ 'get', '/news/folders', array('OCA\News\API_Folder', 'getAll'), 'news', \OC_API::USER_AUTH
+); \ No newline at end of file