First implementation of fetching collections of book managed by user

This commit is contained in:
2026-04-02 16:23:22 +02:00
parent acdc3972bd
commit a280647575
18 changed files with 377 additions and 41 deletions

View File

@@ -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())