From 989fdce8837161e681cc6a86c9fba46a53709143 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Wed, 25 Feb 2026 18:13:32 -0500 Subject: [PATCH] feat: Add JSON content-type to Bible API chapters endpoint --- routes/bible.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); });