diff --git a/src/app/components/share-modal/share-modal.component.html b/src/app/components/share-modal/share-modal.component.html
index e208b65..0d384c6 100644
--- a/src/app/components/share-modal/share-modal.component.html
+++ b/src/app/components/share-modal/share-modal.component.html
@@ -108,9 +108,10 @@
/>
-
response.shares) // Ne garder que la liste d’utilisateurs
);
}
+
+ deletePinShare(pinId: string, friendId: string) {
+ const url = `${this.apiURL}/pin/${pinId}/share/${friendId}`;
+ const headers = this.authService.getAuthHeaders();
+ headers.set('Content-Type', 'application/json');
+ return this.http.delete
(url, { headers });
+ }
}