title: Axios post request parameters to backend are undefined
body: <p>I'm creating a simple ReactJs and I created a Searchbar component that does a post request when the user types something into the searchbar. This is the function that does the call: </p>
  
  <pre><code>const searchApi = searchTerm =&gt; 
  axios.post('http://localhost:3000/findMovie', {
  headers: {
    'Content-Type': 'application/json',
    'Access-Control-Allow-Origin': '*'
  },
  params: searchTerm
  });
  </code></pre>
  
  <p>and it is being called in the onChange function like this:</p>
  
  <pre><code>handleInput = async (ev) =&gt; {
  const value = ev.target.value;
  const resultsBody = await searchApi(ev.target.value);
  </code></pre>
  
  <p>and this is what I do in my <code>server.js</code> file:</p>
  
  <pre><code>app.post('/findMovie', (req, res) =&gt; {
  console.log('request:', req.params);
  
  // axios.get('http://www.omdbapi.com/?apikey='+ 
  // process.env.OMDB_API_KEY + '&amp;s=' +)
  })
  </code></pre>
  
  <p>I expected the <code>console.log</code> in the backend to show me the request parameters so that I can later do my api call to the external api and return the results, but the <code>console.log</code> show an empty object. </p>
  
  <p>I'm quite new to this but shouldn't I do a post request for something like this? I also tried the same with a get request but it also didn't work.</p>