update api

This commit is contained in:
adueck 2023-01-29 23:00:31 +05:00
parent 0c1f6f56d0
commit 41852a9ba8
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ dictionaryRouter.post("/script-to-phonetics", async (req, res, next) => {
return res.status(400).send({ ok: false, error: "invalid query" });
}
const results = await scriptToPhonetics(text, accents);
res.send(results);
res.send({ ok: true, results });
})
dictionaryRouter.post("/entries", async (req, res, next) => {