mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 02:39:05 +02:00
Update jsdocs for search podcasts
This commit is contained in:
parent
2ec52a7a45
commit
180c328ed1
5 changed files with 62 additions and 8 deletions
|
@ -43,14 +43,14 @@ class SearchController {
|
|||
*/
|
||||
async findPodcasts(req, res) {
|
||||
const term = req.query.term
|
||||
const country = req.query.country
|
||||
const country = req.query.country || 'us'
|
||||
if (!term) {
|
||||
Logger.error('[SearchController] Invalid request query param "term" is required')
|
||||
return res.status(400).send('Invalid request query param "term" is required')
|
||||
}
|
||||
|
||||
const results = await PodcastFinder.search(term, {
|
||||
country: country
|
||||
country
|
||||
})
|
||||
res.json(results)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue