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

try to fix joi problem

parent e3c8c0ec
Branches
No related tags found
1 merge request!4Url/year/title
...@@ -139,7 +139,7 @@ router.route("/img/:id") ...@@ -139,7 +139,7 @@ router.route("/img/:id")
}); });
router.route("/pdf/:url") router.route("/pdf/:url")
.get(celebrate({params: validURL}), function(req,res) { .get(celebrate({query: validURL}), function(req,res) {
urltoucans.findOne({urlID: req.params.url}, (err,data) => { urltoucans.findOne({urlID: req.params.url}, (err,data) => {
if (err) { if (err) {
res.end(500); res.end(500);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment