Author books API: use a single query with result and count
This commit is contained in:
@@ -51,10 +51,6 @@ export function getAuthorBooks(data, error, id, limit, offset) {
|
||||
return useFetch(data, error, baseUrl + '/author/' + id + "/books" + "?" + queryParams.toString());
|
||||
}
|
||||
|
||||
export function getCountAuthorBooks(data, error, id) {
|
||||
return useFetch(data, error, baseUrl + '/author/' + id + "/books" + '/count');
|
||||
}
|
||||
|
||||
export function getBook(data, error, id) {
|
||||
return useFetch(data, error, baseUrl + '/book/' + id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user