summaryrefslogtreecommitdiffstats
path: root/appinfo/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/api.php')
-rw-r--r--appinfo/api.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/appinfo/api.php b/appinfo/api.php
index 2c9c7b24b..a2adcf373 100644
--- a/appinfo/api.php
+++ b/appinfo/api.php
@@ -75,6 +75,13 @@ use \OCA\AppFramework\External\External;
\OC_API::USER_AUTH
);
+\OCP\API::register('put', '/apps/news/folders/{folderId}/read',
+ function($params) {
+ return External::main('FolderAPI', 'read', $params, new DIContainer());
+ },
+ 'news',
+ \OC_API::USER_AUTH
+);
/**
* Feed API
@@ -168,4 +175,12 @@ use \OCA\AppFramework\External\External;
},
'news',
\OC_API::USER_AUTH
+);
+
+\OCP\API::register('put', '/apps/news/items/read',
+ function($params) {
+ return External::main('ItemAPI', 'readAll', $params, new DIContainer());
+ },
+ 'news',
+ \OC_API::USER_AUTH
); \ No newline at end of file