diff --git a/account/src/routers/dictionary-router.ts b/account/src/routers/dictionary-router.ts index c408bd8..b3080e1 100644 --- a/account/src/routers/dictionary-router.ts +++ b/account/src/routers/dictionary-router.ts @@ -18,6 +18,7 @@ dictionaryRouter.post("/entries", async (req, res, next) => { return res.send({ ok: false, message: "dictionary not ready" }); } const ids = req.body.ids as (number | string)[]; + console.log({ ids }); if (!Array.isArray(ids)) { return res.status(400).send({ ok: false, error: "invalid query" }); } diff --git a/account/src/test.http b/account/src/test.http deleted file mode 100644 index 03b35f7..0000000 --- a/account/src/test.http +++ /dev/null @@ -1,6 +0,0 @@ -POST http://localhost:4000/dictionary/entries -content-type: application/json - -{ - "ids": ["کور", 1527815306] -} \ No newline at end of file diff --git a/account/test.http b/account/test.http new file mode 100644 index 0000000..40bae86 --- /dev/null +++ b/account/test.http @@ -0,0 +1,6 @@ +POST https://account.lingdocs.com/dictionary/entries HTTP/1.1 +content-type: application/json + +{ + "ids": ["ليدل", 1527815306] +} \ No newline at end of file