diff options
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 095e03f83..767e59f09 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -234,6 +234,14 @@ $this->create('news_ajax_importOPML', '/import')->action( }, 'news', \OC_API::USER_AUTH ); +\OCP\API::register( + 'post', '/news/feeds/{feedid}/delete', + function($urlParams) { + $container = createDIContainer(); + return $container['FeedApi']->delete($urlParams); + }, + 'news', \OC_API::USER_AUTH +); /** * Folder API @@ -255,6 +263,7 @@ $this->create('news_ajax_importOPML', '/import')->action( }, 'news', \OC_API::USER_AUTH ); + \OCP\API::register( 'get', '/news/folders/{folderid}/delete', function($urlParams) { @@ -270,4 +279,4 @@ $this->create('news_ajax_importOPML', '/import')->action( return $container['FolderApi']->modify($urlParams); }, 'news', \OC_API::USER_AUTH -);
\ No newline at end of file +); |