From 18e840902102e9e5138e20398fbab51ed33b829b 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:37:36 +0100 Subject: [PATCH] try to speak mangoose --- backend/routes/routesToucan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index b49d080..5d1633e 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -154,10 +154,10 @@ router.route("/img/:id") } );}); */ - router.get('/pdf/url', (req, res) => { + router.get('/pdf/:urlId', (req, res) => { try { urltoucans. - match({urlId: 'boule-2022'}). + match({urlId: req.params.urlId}). exec((err,data) => { if (err) { console.log(err); -- GitLab