title: Node/Express not responding to POST
body: <p>I have an AngularJS front-end talking to a Node/Express/MySQL backend, and all requests work fine apart from a POST request, here's my Angular Code:</p>
  
  <pre><code>var Data = $resource('http://127.0.0.1:9001/api/data_user');
  var newData = new Data({'data_id': data_id});
  newData.test = 'whatever';
  newData.$save(function (data) {
    console.log(data);
  });
  </code></pre>
  
  <p>And I've taken my usual debugging steps of removing all code until something works, however even this is not working (from client):</p>
  
  <pre><code>app.post('/api/:table', function (req, res) {
    res.send(200);
  });
  </code></pre>
  
  <p>I previously had a MySQL update statement in there, which was being executed properly (with error checking etc), however the front-end is just waiting for a response to come:</p>
  
  <p>(Chrome Dev tools):
  data_user
  /api
  POST
  (pending)
  Pending</p>
  
  <p>The annoying thing about this is that a CURL works fine:</p>
  
  <pre><code>$ curl -i -X POST http://127.0.0.1:9001/api/data_user --data '{}' -H "Content-Type: application/json"
  HTTP/1.1 200 OK
  X-Powered-By: Express
  Content-Type: text/plain
  Content-Length: 2
  Date: Mon, 31 Mar 2014 09:54:21 GMT
  Connection: keep-alive
  </code></pre>
  
  <p>Has anyone got any ideas at all? Can post more code if required</p>