mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added a funny 404 page
This commit is contained in:
@@ -25,8 +25,9 @@ router.route('/api/list/:channel_name').get(function(req, res) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.send(JSON.stringify(docs));
|
||||
} else {
|
||||
res.status(404);
|
||||
res.send(404);
|
||||
/*res.status(404);
|
||||
res.send(404);*/
|
||||
res.status(404).redirect("/404");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -62,8 +63,9 @@ router.route('/api/conf/:channel_name').get(function(req, res) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.send(JSON.stringify(conf));
|
||||
} else {
|
||||
res.status(404);
|
||||
res.send(404);
|
||||
/*res.status(404);
|
||||
res.send(404);*/
|
||||
res.status(404).redirect("/404");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user