From d3790cd4491def9a696695e78f68eaec39164a44 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 3 Jul 2017 15:23:16 +0100 Subject: [PATCH] fix delete Former-commit-id: c7723cad0df2b60665a051e8dc45c8c9a60b0e66 [formerly 81f9c689fca7db156d0360cd20bed483e2672bf8] [formerly af661031d89403ab60b6ad43deef572b9c05a5d2 [formerly 4ddee7cd753d59dbed5fffcce1bc7b3053af0184]] Former-commit-id: 979209eed66a64a123185f1c8a68b6e0a46dea2e [formerly 1f5317e68cf8e2909092b6e841f8a92e215c3a75] Former-commit-id: 616c9b8499ab5904ef6f0970c4efd14a870ccecc --- _assets/src/utils/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_assets/src/utils/api.js b/_assets/src/utils/api.js index 585c1bdf..6e8e195c 100644 --- a/_assets/src/utils/api.js +++ b/_assets/src/utils/api.js @@ -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)