title: Using axios to execute a post request in nodejs but I am not able to receive data in the post route
body: <p>I am trying to execute a post request using axios but the req.body is showing empty object .  Here is my code :</p>
  <pre><code> const postData = {
      tournamentId: tournamentId,
      category: category,
      contestantId: contestantId,
    };
  
    axios.post(`${process.env.URL}/joinTournament`, postData)
            .then((res) =&gt; {
                console.log(`Status: ${res.status}`);
                console.log(&quot;Body: &quot;, res.data);
              })
              .catch((err) =&gt; {
                console.error(err);
              });
  </code></pre>