From 3d6bbeb3cd2a13fc7b46869ed5d0e240da12a9bd Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 8 Dec 2021 14:29:10 -0600 Subject: [PATCH] Fix:Find books api endpoint #225 --- server/ApiController.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/ApiController.js b/server/ApiController.js index fcad04b6..dbe6a053 100644 --- a/server/ApiController.js +++ b/server/ApiController.js @@ -177,10 +177,7 @@ class ApiController { } async findBooks(req, res) { - if (req.method === 'match') { - - } else if (req.method === 'cover') - var provider = req.query.provider || 'google' + var provider = req.query.provider || 'google' var title = req.query.title || '' var author = req.query.author || '' var results = await this.bookFinder.search(provider, title, author)