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

try to speak mangoose

parent a11b501b
Branches
No related tags found
1 merge request!4Url/year/title
...@@ -154,10 +154,10 @@ router.route("/img/:id") ...@@ -154,10 +154,10 @@ router.route("/img/:id")
} }
);}); */ );}); */
router.get('/pdf/url', (req, res) => { router.get('/pdf/:urlId', (req, res) => {
try { try {
urltoucans. urltoucans.
match({urlId: 'boule-2022'}). match({urlId: req.params.urlId}).
exec((err,data) => { exec((err,data) => {
if (err) { if (err) {
console.log(err); console.log(err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment