Completed 2.16 (fix error)

This commit is contained in:
2021-09-13 12:35:27 +07:00
parent 40e3c95f35
commit c0bbf2502b
3 changed files with 17 additions and 10 deletions
+7 -5
View File
@@ -8,18 +8,20 @@ const getContact = () => {
return contact.then(response => response.data)
}
/*
const updateContact = newObject => {
return axios.post(baseUrl, newObject)
const updateContact = newPerson => {
const contact = axios.post(baseUrl, newPerson)
return contact.then(response => response.data)
}
/*
const update = (id, newObject) => {
return axios.put(`${baseUrl}/${id}`, newObject)
}*/
const Contact = {
getContact
getContact, updateContact
}
export default Contact