Merge pull request #28 from AlineRinquin/aline

Aline
This commit is contained in:
AlineRinquin 2022-02-15 15:39:14 +01:00 committed by GitHub
commit f284206787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 115 additions and 53 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> {