feat: getting details of manga

This commit is contained in:
2024-07-05 13:24:36 +03:00
parent 37149c83c4
commit 7eff09765b
5 changed files with 58 additions and 12 deletions

View File

@@ -24,4 +24,19 @@ export class LibSocialParserService {
}),
);
}
getDetails(slug_url: string) {
return this.http
.get(
`${this.url}/api/manga/${slug_url}?fields[]=summary&fields[]=genres&fields[]=tags&fields[]=authors`,
)
.pipe(
map((data: object) => {
return data;
}),
catchError((error) => {
return throwError(() => `Now found ${error}`);
}),
);
}
}