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) {
return res.redirect(`/watch?v=${req.params.v}`);
} else {
return res.redirect("/")
return renderTemplate(res, req, "404.ejs", {
isOldWindows,
random
});
}
}