completed 2.14
This commit is contained in:
parent
0509e60769
commit
7fcd63cc74
4 changed files with 25 additions and 67 deletions
|
|
@ -6,5 +6,8 @@ const getPersons = () => {
|
|||
const addPerson = (personData) => {
|
||||
return axios.post("http://localhost:3001/persons", personData);
|
||||
};
|
||||
const deletePerson = (personId) => {
|
||||
return axios.delete(`http://localhost:3001/persons/${personId}`);
|
||||
};
|
||||
|
||||
export default { getPersons, addPerson };
|
||||
export default { getPersons, addPerson, deletePerson };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue