completed 2.14

This commit is contained in:
Pablo Martin 2025-05-27 16:42:59 +02:00
parent 0509e60769
commit 7fcd63cc74
4 changed files with 25 additions and 67 deletions

View file

@ -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 };