feat: getting details of manga
This commit is contained in:
@@ -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}`);
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user