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

@@ -94,6 +94,7 @@ Filter = require('bad-words');
filter = new Filter({ placeHolder: 'x'});
var router = require('./routing/router.js');
var ico_router = require('./routing/icons_routing.js');
var port = 8080;
server.listen(port, function () {
@@ -118,7 +119,9 @@ app.use(function (req, res, next) {
app.use('/service-worker.js', function(req, res) {
res.sendFile(publicPath + '/service-worker.js');
});
app.use('/', ico_router);
app.use('/', router);
app.use('/assets', express.static(publicPath + '/assets'));
db.on('error',function(err) {