Sending not found page for invalid url id
This commit is contained in:
parent
98aebb7f70
commit
c468e2f34e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue