send file as response node js express code example Example: sendfile express syntax app.get('/', function(req, res){ res.sendFile('index.html'); });