Add a view to see all books in a collection
This commit is contained in:
@@ -60,6 +60,11 @@ export function getCollections(data, error, limit, offset) {
|
||||
return useFetch(data, error, '/ws/collections' + '?' + queryParams.toString())
|
||||
}
|
||||
|
||||
export function getCollection(data, error, id, limit, offset) {
|
||||
const queryParams = new URLSearchParams({ limit: limit, offset: offset })
|
||||
return useFetch(data, error, '/ws/collection/' + id + '?' + queryParams.toString())
|
||||
}
|
||||
|
||||
export function getMyBooks(data, error, arg, limit, offset) {
|
||||
const queryParams = new URLSearchParams({ limit: limit, offset: offset })
|
||||
return useFetch(data, error, '/ws/mybooks/' + arg + '?' + queryParams.toString())
|
||||
|
||||
Reference in New Issue
Block a user