mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-22 17:03:50 +02:00
Update LibraryItemController.js to respond with objects
Changes: - `batchGet` (POST /api/items/batch/get)
This commit is contained in:
parent
cd37a7618e
commit
b84882d9d1
1 changed files with 3 additions and 1 deletions
|
@ -308,7 +308,9 @@ class LibraryItemController {
|
|||
const li = this.db.libraryItems.find(_li => _li.id === lid)
|
||||
if (li) libraryItems.push(li.toJSONExpanded())
|
||||
})
|
||||
res.json(libraryItems)
|
||||
res.json({
|
||||
libraryItems: libraryItems
|
||||
})
|
||||
}
|
||||
|
||||
// POST: api/items/batch/quickmatch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue