delete folder

This commit is contained in:
Nazar Kanaev
2020-07-02 18:43:41 +01:00
parent 07310cbc8f
commit 8499810bc8
4 changed files with 72 additions and 33 deletions

View File

@@ -32,6 +32,9 @@
create: function(data) {
return api('post', '/api/folders', data).then(json)
},
delete: function(id) {
return api('delete', '/api/folders/' + id)
},
}
}
})()