mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 14:36:27 +01:00
Remove authors search api endpoint
This commit is contained in:
1 parent
2df95c1712
commit
1b1bdea3c8
3 files changed
+27
-13
No files matched your search
@@ -153,17 +153,6 @@ class AuthorController {
|
||||
}
|
||||
}
|
||||
|
||||
async search(req, res) {
|
||||
var q = (req.query.q || '').toLowerCase()
|
||||
if (!q) return res.json([])
|
||||
var limit = (req.query.limit && !isNaN(req.query.limit)) ? Number(req.query.limit) : 25
|
||||
var authors = Database.authors.filter(au => au.name?.toLowerCase().includes(q))
|
||||
authors = authors.slice(0, limit)
|
||||
res.json({
|
||||
results: authors
|
||||
})
|
||||
}
|
||||
|
||||
async match(req, res) {
|
||||
let authorData = null
|
||||
const region = req.body.region || 'us'
|
||||
|
||||
Reference in new issue
Block a user