fix delete

pull/144/head
Henrique Dias 2017-07-03 15:23:16 +01:00
parent 12c466d2aa
commit 4ddee7cd75
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ function fetch (url) {
}
function rm (url) {
url = removePrefix(url)
return new Promise((resolve, reject) => {
let request = new window.XMLHttpRequest()
request.open('DELETE', `${store.state.baseURL}/api/resource${url}`, true)