mcmeszi commited on
Commit
4222904
·
verified ·
1 Parent(s): b0d1e59

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +3 -1
server.js CHANGED
@@ -17,7 +17,9 @@ app.use(express.static("public"));
17
  // —— Angol KJV vers lekérése ——
18
  async function fetchEnglishVerse(book, ch, v) {
19
  const ref = encodeURIComponent(book + " " + ch + ":" + v);
20
- const url = "https://bible-api.com/" + ref + "?translation=kjv";
 
 
21
  const r = await fetch(url);
22
  if (!r.ok) throw new Error("bible-api hiba");
23
  const j = await r.json();
 
17
  // —— Angol KJV vers lekérése ——
18
  async function fetchEnglishVerse(book, ch, v) {
19
  const ref = encodeURIComponent(book + " " + ch + ":" + v);
20
+ const url = "https://bible-api.com/" +
21
+ encodeURIComponent(book + " " + ch + ":1") +
22
+ "?translation=kjv";
23
  const r = await fetch(url);
24
  if (!r.ok) throw new Error("bible-api hiba");
25
  const j = await r.json();