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

try to speak mangoose

parent c4e3f86e
Branches
No related tags found
1 merge request!4Url/year/title
......@@ -172,14 +172,17 @@ router.get('/pdf/:urlId', (req, res) => {
}
});
router.get('/pdf/urlID', (req, res) => {
router.get('/pdf/url', (req, res) => {
try {
urltoucans.exec((err,data) => {
console.log(req.params.url);
urltoucans.
match({urlId: 'boule-2022'}).
exec((err,data) => {
if (err) {
console.log(err);
} else {
res.send(data);
console.log(data);
}});
} catch (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