title: Getting 400 error Bad request using axios
body: <p>I am using axios and getting a 400 bad request error. I am using react-redux and trying to send a post request to localhost:3000/posts. Here is the code that I am using.</p>
  
  <pre><code>import axios from 'axios';
  import {
    GET_ALL_POSTS,
    GET_POST,
    CREATE_POST,
    DELETE_POST,
    UPDATE_POST
  } from './types';
  
  const ROOT_URL = 'http://localhost:3000';
  
  export function createPost({content, title}, cb) {
    return function(dispatch) {
      axios.post(`${ROOT_URL}/posts`, {content, title})
        .then((response) =&gt; {
          console.log(response);
          dispatch({
            type: CREATE_POST,
            payload: response
          });
        })
        .then(() =&gt; cb())
        .catch((error) =&gt; {
          console.log("Problem submitting New Post", error);
        });
    }
  }
  </code></pre>