diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index 5d1633e345a956c5d8bb129d0e072199ea4d7a76..64c45f233230e04a48dac30b9b97774031cc44bf 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