generated from nhcarrigan/template
feat: add manga and shows collections
This commit is contained in:
@@ -62,4 +62,28 @@ export class CommentsService {
|
||||
deleteCommentFromArt(artId: string, commentId: string): Observable<{ success: boolean }> {
|
||||
return this.api.delete<{ success: boolean }>(`/art/${artId}/comments/${commentId}`);
|
||||
}
|
||||
|
||||
getCommentsForShow(showId: string): Observable<Comment[]> {
|
||||
return this.api.get<Comment[]>(`/shows/${showId}/comments`);
|
||||
}
|
||||
|
||||
addCommentToShow(showId: string, comment: CreateCommentDto): Observable<Comment> {
|
||||
return this.api.post<Comment>(`/shows/${showId}/comments`, comment);
|
||||
}
|
||||
|
||||
deleteCommentFromShow(showId: string, commentId: string): Observable<{ success: boolean }> {
|
||||
return this.api.delete<{ success: boolean }>(`/shows/${showId}/comments/${commentId}`);
|
||||
}
|
||||
|
||||
getCommentsForManga(mangaId: string): Observable<Comment[]> {
|
||||
return this.api.get<Comment[]>(`/manga/${mangaId}/comments`);
|
||||
}
|
||||
|
||||
addCommentToManga(mangaId: string, comment: CreateCommentDto): Observable<Comment> {
|
||||
return this.api.post<Comment>(`/manga/${mangaId}/comments`, comment);
|
||||
}
|
||||
|
||||
deleteCommentFromManga(mangaId: string, commentId: string): Observable<{ success: boolean }> {
|
||||
return this.api.delete<{ success: boolean }>(`/manga/${mangaId}/comments/${commentId}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user