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

commented old code

parent edd11326
Branches
No related tags found
1 merge request!4Url/year/title
......@@ -138,7 +138,7 @@ router.route("/img/:id")
}
});
router.route("/pdf/:urlID")
/* router.route("/pdf/:urlID")
.get(celebrate({params: validURL}), function(req,res) {
urltoucans.match({urlID: req.params.urlID}, (err,data) => {
if (err) {
......@@ -152,7 +152,7 @@ router.route("/pdf/:urlID")
//const id = data._id;
//res.sendFile(path.resolve(env.savedExtensions[1].path,id+".pdf"));
}
);});
);}); */
router.get('/pdf/:urlID', (req, res) => {
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment