Fixed some urls.

This commit is contained in:
aminecmi 2022-07-17 16:35:05 +02:00
parent b1b19ba71a
commit 9f7bacede8

View File

@ -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',