Fix:Find books api endpoint #225

This commit is contained in:
advplyr 2021-12-08 14:29:10 -06:00
parent c711c2ef82
commit 3d6bbeb3cd

View File

@ -177,10 +177,7 @@ class ApiController {
} }
async findBooks(req, res) { async findBooks(req, res) {
if (req.method === 'match') { var provider = req.query.provider || 'google'
} else if (req.method === 'cover')
var provider = req.query.provider || 'google'
var title = req.query.title || '' var title = req.query.title || ''
var author = req.query.author || '' var author = req.query.author || ''
var results = await this.bookFinder.search(provider, title, author) var results = await this.bookFinder.search(provider, title, author)