list all/folder/feed items
This commit is contained in:
parent
087f0d5657
commit
d01060ba3b
5 changed files with 83 additions and 36 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue