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

try to speak mangoose

parent c3358292
Branches
No related tags found
1 merge request!4Url/year/title
...@@ -157,6 +157,7 @@ router.route("/img/:id") ...@@ -157,6 +157,7 @@ router.route("/img/:id")
router.get('/pdf/url', (req, res) => { router.get('/pdf/url', (req, res) => {
try { try {
console.log(req.params.url); console.log(req.params.url);
console.log(urltoucans.path('urlId'));
urltoucans. urltoucans.
match({_id: mongoose.Types.ObjectId('5fc9e888f47f0041d8b83719')}). match({_id: mongoose.Types.ObjectId('5fc9e888f47f0041d8b83719')}).
exec((err,data) => { exec((err,data) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment