Made the base (index.js) work fully.

This commit is contained in:
corner 2020-01-25 10:26:27 +01:00
parent 818e29fa2c
commit e0b800086f

View File

@ -15,11 +15,12 @@ app.set('views', path.resolve('views/'));
var username = 'ARN';
app.get('/', (req, res) =>
res.render('index')
);
app.get('/', (req, res) => {
// Render index.mustache and pass username through.
res.render('index', {username: username});
});
app.get('/scss/:file', (req, res) =>
res.sendFile(path.resolve('scss/' + req.params.file))
res.sendFile(path.resolve('scss/' + req.params.file));
);