express server html sendfile code example
Example 1: express send html file
app.get('/test', function(req, res) {
res.sendFile('test.html', {root: __dirname })
});
Example 2: sendfile express syntax
app.get('/', function(req, res){
res.sendFile('index.html');
});