summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-11-01 15:16:15 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-11-01 15:16:15 +0100
commita42da9a97c7fc84af09e01f3d6f3ee80a46b763b (patch)
treecf4b58d55c0f4e46db3dbea1bd3bd93f155d107c /js/build/app.js
parentcc5dd4231b11f87a7b0d0e66a7d00e62d11f7fb9 (diff)
clean up feed api
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js20
1 files changed, 2 insertions, 18 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 4ac05370a..9dd7e321a 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -777,7 +777,7 @@ app.controller('NavigationController',
};
this.renameFeed = function (feed) {
- FeedResource.rename(feed.id, feed.title);
+ FeedResource.patch(feed.id, {title: feed.title});
feed.editing = false;
};
@@ -1148,16 +1148,6 @@ app.factory('FeedResource', ["Resource", "$http", "BASE_URL", "$q", function (Re
return this.locations[location];
};
- FeedResource.prototype.rename = function (id, title) {
- return this.http({
- method: 'POST',
- url: this.BASE_URL + '/feeds/' + id + '/rename',
- data: {
- feedTitle: title
- }
- });
- };
-
FeedResource.prototype.move = function (feedId, folderId) {
var feed = this.getById(feedId);
@@ -1166,13 +1156,7 @@ app.factory('FeedResource', ["Resource", "$http", "BASE_URL", "$q", function (Re
this.updateFolderCache();
this.updateUnreadCache();
- return this.http({
- method: 'POST',
- url: this.BASE_URL + '/feeds/' + feed.id + '/move',
- data: {
- parentFolderId: folderId
- }
- });
+ return this.patch(feedId, {folderId: folderId});
};