update REDME.md

This commit is contained in:
Otang45
2023-08-19 19:46:02 +07:00
parent 579054787e
commit a3c5363299
3 changed files with 18 additions and 5 deletions

View File

@@ -43,8 +43,9 @@ const getAyah = (surahId, ayahId) => {
const getAyahJuz = (juzId) => {
var result = [];
for (let index = 0; index < ayah.length; index++) {
if (ayah[index].juz == juzId) {
result.push(ayah[index]);
const element = ayah[index];
if (element.juz == juzId) {
result.push(element);
}
}
return result;

View File

@@ -43,7 +43,7 @@ router.get("/", (req, res) =>
},
spesifikAyat: {
pattern: "/quran/ayah/{surahId}/{ayahId}",
contoh: "/quran/ayah/surah/114/1",
contoh: "/quran/ayah/114/1",
},
spesifikJuz: {
pattern: "/quran/ayah/juz/{juzId}",