From 6af7a4d0530d4eb6c3850626d10bcca15e8d5c60 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:04:57 +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 620b84d..635ecd0 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('/img/'+idMax);
+              res.redirect('toucan/img/'+idMax);
               }
           }
           
-- 
GitLab