update api
This commit is contained in:
parent
0c1f6f56d0
commit
41852a9ba8
|
@ -25,7 +25,7 @@ dictionaryRouter.post("/script-to-phonetics", async (req, res, next) => {
|
||||||
return res.status(400).send({ ok: false, error: "invalid query" });
|
return res.status(400).send({ ok: false, error: "invalid query" });
|
||||||
}
|
}
|
||||||
const results = await scriptToPhonetics(text, accents);
|
const results = await scriptToPhonetics(text, accents);
|
||||||
res.send(results);
|
res.send({ ok: true, results });
|
||||||
})
|
})
|
||||||
|
|
||||||
dictionaryRouter.post("/entries", async (req, res, next) => {
|
dictionaryRouter.post("/entries", async (req, res, next) => {
|
||||||
|
|
Loading…
Reference in New Issue