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

commented old code

parent 2a673558
No related branches found
No related tags found
1 merge request!4Url/year/title
......@@ -156,15 +156,7 @@ router.route("/img/:id")
router.get('/pdf/:urlID', (req, res) => {
try {
urltoucans.match({urlID: req.parameters.urlID})
.exec((err, data) => {
if (err) {
console.log(err);
res.sendStatus(500);
} else {
res.send(data);
}
});
res.json(urltoucans);
} catch (err) {
console.log(err);
res.sendStatus(401);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment