generated from nhcarrigan/template
feat: add art component
This commit is contained in:
@@ -50,4 +50,16 @@ export class CommentsService {
|
||||
deleteCommentFromMusic(musicId: string, commentId: string): Observable<{ success: boolean }> {
|
||||
return this.api.delete<{ success: boolean }>(`/music/${musicId}/comments/${commentId}`);
|
||||
}
|
||||
|
||||
getCommentsForArt(artId: string): Observable<Comment[]> {
|
||||
return this.api.get<Comment[]>(`/art/${artId}/comments`);
|
||||
}
|
||||
|
||||
addCommentToArt(artId: string, comment: CreateCommentDto): Observable<Comment> {
|
||||
return this.api.post<Comment>(`/art/${artId}/comments`, comment);
|
||||
}
|
||||
|
||||
deleteCommentFromArt(artId: string, commentId: string): Observable<{ success: boolean }> {
|
||||
return this.api.delete<{ success: boolean }>(`/art/${artId}/comments/${commentId}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user