delete
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user