update REDME.md
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user