Trying to get realfavicon working

This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-03 16:25:31 +02:00
parent ef329b9b71
commit 0570bfd45a
6 changed files with 123 additions and 29 deletions

View File

@@ -11,10 +11,6 @@ router.use(function(req, res, next) {
next(); // make sure we go to the next routes and don't stop here
});
router.route('/favicon.ico').get(function(req, res, next) {
res.sendFile(path.join(pathThumbnails, '/public/assets/images/favicon.ico'));
});
router.route('/:channel_name').get(function(req, res, next){
try{
var url = req.headers['x-forwarded-host'] ? req.headers['x-forwarded-host'] : req.headers.host.split(":")[0];