From c7b694c9b6a6c781ea3f6b8203508102668899ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Mon, 14 Feb 2022 16:06:29 +0100 Subject: [PATCH] try to add last toucan image route : add toucan in url --- backend/routes/routesToucan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index 635ecd0..620b84d 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -190,7 +190,7 @@ router.get('/img-lastToucan', (req, res) => { idMax = toucans[i]._id; } } - res.redirect('toucan/img/'+idMax); + res.redirect('/img/'+idMax); } } -- GitLab