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

try to speak mangoose

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