fix delete

Former-commit-id: c7723cad0df2b60665a051e8dc45c8c9a60b0e66 [formerly 81f9c689fca7db156d0360cd20bed483e2672bf8] [formerly af661031d89403ab60b6ad43deef572b9c05a5d2 [formerly 4ddee7cd75]]
Former-commit-id: 979209eed66a64a123185f1c8a68b6e0a46dea2e [formerly 1f5317e68cf8e2909092b6e841f8a92e215c3a75]
Former-commit-id: 616c9b8499ab5904ef6f0970c4efd14a870ccecc
pull/726/head
Henrique Dias 2017-07-03 15:23:16 +01:00
parent 067051ea09
commit d3790cd449
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)