création de groupe début

This commit is contained in:
2026-06-11 00:24:13 +02:00
parent 1c663913a7
commit 6ffcece3fa
8 changed files with 379 additions and 21 deletions
+4
View File
@@ -28,4 +28,8 @@ export class discussionsService {
createPrivateDiscussion(username: string): Observable<Discussion> {
return this.http.post<Discussion>(`${this.apiUrl}/discussions/private`, { username });
}
createGroupDiscussion(groupName: string, usernames: string[]): Observable<Discussion> {
return this.http.post<Discussion>(`${this.apiUrl}/discussions/group`, { groupName, usernames });
}
}