diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/api.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/api.js index 5a991b57c..e4ed78f35 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/api.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/api.js @@ -125,31 +125,6 @@ const postPostalCode = (postalCode) => { }); }; -/* -* Endpoint chill_api_single_person_address -* method POST, post Person instance -* -* @id integer - id of Person -* @body Object - dictionary with changes to post -*/ -const postAddressToPerson = (personId, addressId) => { - //console.log(personId); - //console.log(addressId); - const body = { - 'id': addressId - }; - const url = `/api/1.0/person/person/${personId}/address.json` - return fetch(url, { - method: 'POST', - headers: {'Content-Type': 'application/json;charset=utf-8'}, - body: JSON.stringify(body) - }) - .then(response => { - if (response.ok) { return response.json(); } - throw Error('Error with request resource response'); - }); -}; - /* * Endpoint chill_api_single_address__index * method GET, get Address Object @@ -174,6 +149,5 @@ export { postAddress, patchAddress, postPostalCode, - postAddressToPerson, getAddress }; diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue index be5e7038a..94eb32e0c 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue @@ -117,13 +117,12 @@