summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
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