title: how to serve html file used in react in server
body: <p>this is folder of code</p>
  
  <p><a href="https://i.stack.imgur.com/5Bfar.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Bfar.png" alt="enter image description here"></a></p>
  
  <p>I use node js and react to build a project I build design using react and controller to get data  how I can serve html file in server so when run node server.js it open html page that I created I try this in server. js</p>
  
  <pre><code>app.get('/english', function(req, res) {
      res.send(path.join(__dirname + '/index.html'));
  });
  </code></pre>
  
  <p>and when i run this route <code>localhost:3000/english</code> i got this</p>
  
  <pre><code>/home/projects/folder/folder2/myproject/index.html
  </code></pre>