list all/folder/feed items

This commit is contained in:
Nazar Kanaev
2020-07-05 20:19:03 +01:00
parent 087f0d5657
commit d01060ba3b
5 changed files with 83 additions and 36 deletions

View File

@@ -44,8 +44,14 @@
delete: function(id) {
return api('delete', '/api/folders/' + id)
},
list_items: function(id) {
return api('get', '/api/folders/' + id + '/items').then(json)
}
},
items: {
list: function() {
return api('get', '/api/items').then(json)
},
update: function(id, data) {
return api('put', '/api/items/' + id, data)
}