From 29068ee2862f8f21b0929ab51f1a9f486601de56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Mon, 10 Jan 2022 23:15:01 +0100 Subject: [PATCH] try to resolve id instead of title in path to toucan --- backend/routes/routesToucan.js | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/routes/routesToucan.js b/backend/routes/routesToucan.js index d40870a..11434ed 100644 --- a/backend/routes/routesToucan.js +++ b/backend/routes/routesToucan.js @@ -134,7 +134,6 @@ router.route("/pdf/:title") res.status(404).send("Toucan non trouvé"); return; } - const title= data._title; res.sendFile(path.resolve(env.savedExtensions[1].path,title+".pdf")); } );}); -- GitLab