From 9f7bacede8d12df4e3f830ee3fab8ad420084a97 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 17 Jul 2022 16:35:05 +0200 Subject: [PATCH] Fixed some urls. --- src/views/List.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/List.vue b/src/views/List.vue index 880e603..ff65f5f 100644 --- a/src/views/List.vue +++ b/src/views/List.vue @@ -66,7 +66,7 @@ export default { if (!ignoreLoading) { this.loading = true; } - fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists/' + this.listId + '/items`, { + fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists/` + this.listId + `/items`, { method: 'GET', headers: { 'Content-Type': 'application/json;charset=utf-8', @@ -86,7 +86,7 @@ export default { item.loading = true; const itemCopy = Object.assign({}, item); delete itemCopy.loading; - fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists/' + this.listId + '/items/` + item.id, { + fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists/` + this.listId + `/items/` + item.id, { method: 'PATCH', headers: { 'Content-Type': 'application/json;charset=utf-8', @@ -132,7 +132,7 @@ export default { }; this.updateItem(itemToSend, true); } else { - fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists/' + this.listId + '/items`, { + fetch(`${process.env.VUE_APP_API_BASE_URL}/api/lists/` + this.listId + `/items`, { method: 'POST', headers: { 'Content-Type': 'application/json;charset=utf-8',