title: React/Nodejs/Express - Routes not working on Azure Web App
body: <p>this is my first time making a nodejs app, and using express. I created the project using create-react-app. I am trying to setup a CI/CD pipeline using VSTS to deploy to my Azure Web App. I am able to get my React code working on the web app, but when I try to hit my Express route, it throws a 404, and renders the index.html file instead of retrieving the data.</p>
  
  <p>Here is my file structure: <a href="https://i.stack.imgur.com/Sm0pQ.png" rel="nofollow noreferrer">File Structure</a></p>
  
  <p>My Package.json: <a href="https://i.stack.imgur.com/2M0wK.png" rel="nofollow noreferrer">Package.json</a></p>
  
  <p>My Express server: <a href="https://i.stack.imgur.com/vJjSL.png" rel="nofollow noreferrer">server.js</a></p>
  
  <p>Also, here is my build VSTS:</p>
  
  <p><a href="https://i.stack.imgur.com/kFsxd.png" rel="nofollow noreferrer">Archive</a></p>
  
  <p><a href="https://i.stack.imgur.com/CfO7d.png" rel="nofollow noreferrer">drop</a></p>
  
  <p>And here is my Release:</p>
  
  <p><a href="https://i.stack.imgur.com/09GIZ.png" rel="nofollow noreferrer">Release</a></p>
  
  <p>And this is what is put onto the server: <a href="https://i.stack.imgur.com/s0Fts.png" rel="nofollow noreferrer">Azure files</a></p>
  
  <p>When I run this locally, hitting localhost/api/getData returns my data as expected. But for some reason it does not work in production.</p>
  
  <p>Any help would be greatly appreciated! I've been stuck on this for the last 2 days and I can't seem to find anything that has helped. I've read multiple forums, but none of the fixes they provide seem to be working. Thank you!</p>