From 4ddee7cd753d59dbed5fffcce1bc7b3053af0184 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 3 Jul 2017 15:23:16 +0100 Subject: [PATCH] fix delete --- _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)