Skip to content
Snippets Groups Projects
Commit 5aabd6d5 authored by Inès Yeterian's avatar Inès Yeterian
Browse files

Revert "marche arrière"

This reverts commit f52de6b4.
parent 4635d181
No related branches found
No related tags found
No related merge requests found
...@@ -135,8 +135,7 @@ router.route("/pdf/:title") ...@@ -135,8 +135,7 @@ router.route("/pdf/:title")
res.status(404).send("Toucan non trouvé"); res.status(404).send("Toucan non trouvé");
return; return;
} }
const id = data._id; res.sendFile(path.resolve(env.savedExtensions[1].path,title+".pdf"));
res.sendFile(path.resolve(env.savedExtensions[1].path,id+".pdf"));
} }
);}); );});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment