This commit is contained in:
truewhile
2026-08-28 22:38:09 +08:00
parent 1b7d4eef46
commit 7425c3d57b
4 changed files with 32 additions and 48 deletions
+2 -1
View File
@@ -87,12 +87,13 @@ export interface LibraryWithPreview extends Library {
}
export const libraryAPI = {
list: (options?: { includeHidden?: boolean; withPreview?: boolean }) =>
list: (options?: { includeHidden?: boolean; withPreview?: boolean; previewLimit?: number }) =>
api
.get<LibraryWithPreview[]>('/libraries', {
params: {
...(options?.includeHidden ? { include_hidden: 1 } : {}),
...(options?.withPreview ? { with_preview: 1 } : {}),
...(options?.previewLimit ? { preview_limit: options.previewLimit } : {}),
},
})
.then((r) => r.data),