mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 10:53:44 +00:00
add 404 back
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user