This commit is contained in:
Bastian Wagner
2026-06-15 10:45:39 +02:00
parent 8caf207c7b
commit fd7245f1fb
7 changed files with 175 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ export class ListsService {
return this.http.patch<UserList>(`${this.apiUrl}/${listId}`, data);
}
deleteList(listId: string): Observable<{ message: string }> {
return this.http.delete<{ message: string }>(`${this.apiUrl}/${listId}`);
}
shareList(listId: string, userId: string): Observable<UserList> {
return this.http.post<UserList>(`${this.apiUrl}/${listId}/shares`, { userId });
}