1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 04:34:38 -05:00

add 404 back

This commit is contained in:
Ashley 2023-12-26 07:47:35 +00:00
parent 93ef7f3790
commit bd0807d4a8

View file

@ -133,7 +133,10 @@ module.exports = function (app, config, renderTemplate) {
if (isvld && req.params.v.length >= 10) { if (isvld && req.params.v.length >= 10) {
return res.redirect(`/watch?v=${req.params.v}`); return res.redirect(`/watch?v=${req.params.v}`);
} else { } else {
return res.redirect("/") return renderTemplate(res, req, "404.ejs", {
isOldWindows,
random
});
} }
} }