From 8bffbedcd8fe1a8e7f40e27fdd44b8bd329b75ff Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 29 May 2013 18:07:26 +0200 Subject: added method for marking all read --- appinfo/api.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'appinfo') 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 -- cgit v1.2.3