Fix for 404 not routing to 404 page

This commit is contained in:
Kasper Rynning-Tønnesen
2019-07-29 15:52:27 +02:00
parent e8d49c77df
commit f9b05c11e0

View File

@@ -296,9 +296,6 @@ function channel(req, res, next) {
if (subdomain[0] == "client") { if (subdomain[0] == "client") {
data.client = true; data.client = true;
} }
if (req.params.channel_name == "404") {
res.status(404);
}
res.render("layouts/client/channel", data); res.render("layouts/client/channel", data);
//}); //});
} }