mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 09:38:25 +01:00
add 404 back
This commit is contained in:
parent
93ef7f3790
commit
bd0807d4a8
1 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,10 @@ module.exports = function (app, config, renderTemplate) {
|
|||
if (isvld && req.params.v.length >= 10) {
|
||||
return res.redirect(`/watch?v=${req.params.v}`);
|
||||
} else {
|
||||
return res.redirect("/")
|
||||
return renderTemplate(res, req, "404.ejs", {
|
||||
isOldWindows,
|
||||
random
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue