diff --git a/routes/bible.js b/routes/bible.js index 109123a..2e0aff9 100644 --- a/routes/bible.js +++ b/routes/bible.js @@ -148,7 +148,8 @@ DB.getDB.then((DB) => { router.get("/chapters/:chapterId", async (req, res) => { const chapterId = req.params.chapterId; const bibleId = req.query.bibleId || defaultBibleId; - const bibles = await fetchAPI('bibles/' + bibleId + "/chapters/" + chapterId); + const contentType = req.query['content-type'] ? `?content-type=${req.query['content-type']}` : ''; + const bibles = await fetchAPI('bibles/' + bibleId + "/chapters/" + chapterId + contentType); return res.json(bibles); });