express how to add information to html file code example
Example 1: send html file express
res.sendFile(path.join(__dirname + '/index.html'));
Example 2: express send html file
app.get('/test', function(req, res) {
res.sendFile('test.html', {root: __dirname })
});