Made the base (index.js) work fully.
This commit is contained in:
parent
818e29fa2c
commit
e0b800086f
@ -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));
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user