First implementation of fetching collections of book managed by user
This commit is contained in:
@@ -55,6 +55,11 @@ export async function getAppInfo(appInfo, appInfoErr) {
|
||||
.catch((err) => (appInfoErr.value = err))
|
||||
}
|
||||
|
||||
export function getCollections(data, error, limit, offset) {
|
||||
const queryParams = new URLSearchParams({ limit: limit, offset: offset })
|
||||
return useFetch(data, error, '/ws/collections' + '?' + 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