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

try to speak mangoose

parent 18e84090
Branches
No related tags found
1 merge request!4Url/year/title
...@@ -172,4 +172,20 @@ router.route("/img/:id") ...@@ -172,4 +172,20 @@ router.route("/img/:id")
} }
}); });
router.get('/pdf/url', (req, res) => {
try {
urltoucans.
exec((err,data) => {
if (err) {
console.log(err);
} else {
res.json(data));
}});
} catch (err) {
console.log(err);
res.sendStatus(401);
}
});
module.exports = router; module.exports = router;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment