mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-14 23:28:49 +01:00
actually use 404 LOL
This commit is contained in:
parent
663cbe3cde
commit
bc7ffd16e3
1 changed files with 2 additions and 1 deletions
|
@ -225,6 +225,7 @@ 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 {
|
||||||
|
res.status(404)
|
||||||
return renderTemplate(res, req, "404.ejs", {
|
return renderTemplate(res, req, "404.ejs", {
|
||||||
isOldWindows,
|
isOldWindows,
|
||||||
random
|
random
|
||||||
|
|
Loading…
Reference in a new issue