sendfile as a link in rest api node code example Example: sendfile express syntax app.get('/', function(req, res){ res.sendFile('index.html'); });