summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appinfo/api.php8
-rw-r--r--external/itemapi.php9
2 files changed, 17 insertions, 0 deletions
diff --git a/appinfo/api.php b/appinfo/api.php
index a2adcf373..e54493e5f 100644
--- a/appinfo/api.php
+++ b/appinfo/api.php
@@ -183,4 +183,12 @@ use \OCA\AppFramework\External\External;
},
'news',
\OC_API::USER_AUTH
+);
+
+\OCP\API::register('put', '/apps/news/items/read/multiple',
+ function($params) {
+ return External::main('ItemAPI', 'readMultiple', $params, new DIContainer());
+ },
+ 'news',
+ \OC_API::USER_AUTH
); \ No newline at end of file
diff --git a/external/itemapi.php b/external/itemapi.php
index 2ba1fcaed..a67d5a171 100644
--- a/external/itemapi.php
+++ b/external/itemapi.php
@@ -156,4 +156,13 @@ class ItemAPI extends Controller {
}
+ public function readMultiple() {
+ $userId = $this->api->getUserId();
+ //$ids = $this->params('_put');
+ //print_r(json_decode(file_get_contents('php://input'), true));
+
+ exit();
+ //return new NewsAPIResult();
+ }
+
}