how to send html file in node js if home route hits code example Example: send html file express res.sendFile(path.join(__dirname + '/index.html'));