diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2013-03-08 14:50:10 +0100 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2013-03-08 14:50:10 +0100 |
commit | f652daa3d92d0a5401b45e8b77cc2cfbb42023bd (patch) | |
tree | 4eb216c91e2828de9c3e2e9a19c5ed8a91e0cdc6 /external_api/feed.php | |
parent | 25a766a00933ccbe5c24dc4c91bc93587e033abc (diff) |
fix merge conflict
Diffstat (limited to 'external_api/feed.php')
-rw-r--r-- | external_api/feed.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/external_api/feed.php b/external_api/feed.php index 7dfd5763f..a56cd2253 100644 --- a/external_api/feed.php +++ b/external_api/feed.php @@ -25,6 +25,19 @@ class FeedApi { return new \OC_OCS_Result($serializedFeed); } + public function delete($params) { + //TODO: check parameters here + + $success = $this->bl->delete($params["feedid"]); + + if ($success) { + return new \OC_OCS_Result(); + } + else { + return new \OC_OCS_Result(null, 101); + } + } + public function create() { $url = $_POST['url']; $folderId = $_POST['folderid']; |