title: Switching from vue-resource to axios
body: <p>With vue-resource, we could set the root url in <code>main.js</code> like so:</p>
  
  <pre><code>Vue.http.options.root = 'http://localhost:3000/api'
  </code></pre>
  
  <p>I tried replacing that with:</p>
  
  <pre><code>axios.defaults.baseURL = 'http://localhost:3000/api';
  Vue.prototype.$http = axios
  </code></pre>
  
  <p>However, now my post calls don't work as expected, and <code>Vue.http.post</code> throws an error.</p>
  
  <p>How is this achieved?</p>