mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-02 14:55:31 +00:00
Fixed 404 status not being sent
This commit is contained in:
@@ -70,10 +70,15 @@ function channel(req, res, next) {
|
||||
res.sendFile(path.join(pathThumbnails, '/public/assets/html/callback.html'));
|
||||
} else {
|
||||
var data = {
|
||||
title: "404: File Not Found",
|
||||
list_name: capitalizeFirstLetter(req.params.channel_name),
|
||||
year: 2017,
|
||||
javascript_file: "main.min.js"
|
||||
}
|
||||
if(req.params.channel_name == "404") {
|
||||
res.status(404);
|
||||
}
|
||||
|
||||
res.render('layouts/channel', data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user