fonction delete

This commit is contained in:
AlineRinquin 2022-02-15 13:58:06 +01:00
parent 7bed54db11
commit 61cacda89b
5 changed files with 27 additions and 17 deletions

View file

@ -27,12 +27,11 @@ export class RepertoireService {
addContact(contact: Contact): Observable<any> {
console.log(contact);
return this.http.post(`${this.apiUrl}/contacts/add`, contact);
}
deleteContact(contact: Contact): Observable<any> {
return this.http.delete(`${this.apiUrl}/contacts/delete/1`);
deleteContact(contactId: number): Observable<any> {
return this.http.delete(`${this.apiUrl}/contacts/delete/${contactId}`);
}
updateContact(contact: Contact): Observable<any> {