express load html file from a folder code example
Example 1: express send html file
app.get('/test', function(req, res) {
res.sendFile('test.html', {root: __dirname })
});
Example 2: app.use public
app.use(express.static('public'))
app.use(express.static('files'))