title: I am getting 404 from server but i know that API exists in the back end (node.js)
body: <p>I have a Node.js file in which I am creating node APIs to interact with the client side (react). It is working fine with existing APIs, however when I create new APIs, server is throwing 404 error. </p>
  
  <p>P.S: It is working absolutely fine in localhost </p>
  
  <pre><code> app.post('/getMarket', async (req, res) =&gt; {
      console.log("=========== GET MARKET =============");               
   });
  </code></pre>
  
  <p>Console:
  Failed to load resource: the server responded with a status of 404 (Not Found) getMarket:1</p>
  
  <p>Any idea how can we solve this?</p>