Skip to content
Snippets Groups Projects
Commit d11b4bc4 authored by Hagen Dreßler's avatar Hagen Dreßler
Browse files

Edit service comment (add getComments)

parent 84e7355d
Branches
Tags
1 merge request!46Resolve "comment creation - participant component logic"
......@@ -17,4 +17,9 @@ export class CommentService {
addComment(comment: Comment): Observable<Comment> {
return this.http.post<Comment>(this.commentsUrl, comment, httpOptions);
}
getComments(roomId: string): Observable<Comment[]> {
const url = `${this.commentsUrl}/?roomId=${roomId}`;
return this.http.get<Comment[]>(url);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment