From 15a8ebd8f98ff28dfd3858251ed69c0e27ad285c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Sun, 16 Jan 2022 20:46:03 +0100 Subject: [PATCH] try to speak mangoose --- backend/routes/routesToucan.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index 5d1633e..64c45f2 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -172,4 +172,20 @@ router.route("/img/:id") } }); + router.get('/pdf/url', (req, res) => { + try { + urltoucans. + exec((err,data) => { + if (err) { + console.log(err); + + } else { + res.json(data)); + }}); + } catch (err) { + console.log(err); + res.sendStatus(401); + } + }); + module.exports = router; \ No newline at end of file -- GitLab