Fixed some urls.
This commit is contained in:
parent
b1b19ba71a
commit
9f7bacede8
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user