summaryrefslogtreecommitdiffstats
path: root/js/public/app.js
diff options
context:
space:
mode:
authorXemle <xemle@phtagr.org>2013-05-27 17:01:48 +0200
committerXemle <xemle@phtagr.org>2013-05-27 17:01:48 +0200
commitce88338925138eb0fc1ad9f68ca7d55b42f3a884 (patch)
tree8c22fd844b8c10684be22d7b0a9e913085436594 /js/public/app.js
parent6ede787f3a0778f5542573e93e881894ec67aad5 (diff)
Issue #166 Improve RESTful urls for web backend
Change create and delete urls for feeds and folders: POST /feed - Creates a feed DELETE /feed/:feedId - Deletes a feed POST /folder - Creates a folder DELETE /folder/:folderId - Deletes a feed
Diffstat (limited to 'js/public/app.js')
-rw-r--r--js/public/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/public/app.js b/js/public/app.js
index 1d597f2ad..411814bcc 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -2668,7 +2668,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
feedId: feedId
}
};
- return this._request.post('news_feeds_delete', params);
+ return this._request["delete"]('news_feeds_delete', params);
};
Persistence.prototype.restoreFeed = function(feedId, onSuccess) {
@@ -2852,7 +2852,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
folderId: folderId
}
};
- return this._request.post('news_folders_delete', params);
+ return this._request["delete"]('news_folders_delete', params);
};
Persistence.prototype.restoreFolder = function(folderId, onSuccess) {