render something on page express localhost code example
Example: express send html file
app.get('/test', function(req, res) {
res.sendFile('test.html', {root: __dirname })
});
app.get('/test', function(req, res) {
res.sendFile('test.html', {root: __dirname })
});