From 41852a9ba82423c5197f5cfafd025142fd029315 Mon Sep 17 00:00:00 2001 From: adueck Date: Sun, 29 Jan 2023 23:00:31 +0500 Subject: [PATCH] update api --- account/src/routers/dictionary-router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/src/routers/dictionary-router.ts b/account/src/routers/dictionary-router.ts index 5834a29..f561ef9 100644 --- a/account/src/routers/dictionary-router.ts +++ b/account/src/routers/dictionary-router.ts @@ -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) => {