mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(pronouns) fix examples query parameter
This commit is contained in:
parent
8a8a410fc1
commit
153867d79d
@ -59,7 +59,7 @@ router.get('/pronouns', handleErrorAsync(async (req, res) => {
|
|||||||
pronouns[name] = pronoun;
|
pronouns[name] = pronoun;
|
||||||
}
|
}
|
||||||
for (const pronoun of Object.values(pronouns)) {
|
for (const pronoun of Object.values(pronouns)) {
|
||||||
modifyPronoun(pronoun);
|
modifyPronoun(pronoun, req.query.examples);
|
||||||
}
|
}
|
||||||
return res.json(pronouns);
|
return res.json(pronouns);
|
||||||
}));
|
}));
|
||||||
@ -72,7 +72,7 @@ router.get('/pronouns/:pronoun*', handleErrorAsync(async (req, res) => {
|
|||||||
translator,
|
translator,
|
||||||
);
|
);
|
||||||
if (pronoun) {
|
if (pronoun) {
|
||||||
modifyPronoun(pronoun);
|
modifyPronoun(pronoun, req.query.examples);
|
||||||
}
|
}
|
||||||
return res.json(pronoun);
|
return res.json(pronoun);
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user