completed 2.15
This commit is contained in:
parent
c1ec71d509
commit
2e3dfd4114
4 changed files with 39 additions and 4 deletions
|
|
@ -9,5 +9,8 @@ const addPerson = (personData) => {
|
|||
const deletePerson = (personId) => {
|
||||
return axios.delete(`http://localhost:3001/persons/${personId}`);
|
||||
};
|
||||
const updatePerson = (personId, personData) => {
|
||||
return axios.put(`http://localhost:3001/persons/${personId}`, personData);
|
||||
};
|
||||
|
||||
export default { getPersons, addPerson, deletePerson };
|
||||
export default { getPersons, addPerson, deletePerson, updatePerson };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue