Merge pull request #506 from varghesethomase/404-page

404 page
This commit is contained in:
Danny Coates 2017-08-11 12:20:02 -07:00 committed by GitHub
commit 0250924961

View file

@ -148,7 +148,7 @@ app.get('/exists/:id', async (req, res) => {
app.get('/download/:id', async (req, res) => {
const id = req.params.id;
if (!validateID(id)) {
res.sendStatus(404);
res.status(404).render('notfound');
return;
}