title: angular $resource delete won't send body to express.js server
body: <p>hye,</p>
  
  <p>i am building an app with angular.js and node.js (Express.js) on the server side.</p>
  
  <p>for some reason i am having a problem handling a delete request. no body is getting to the server side.</p>
  
  <p>this is my angular.js resource code:</p>
  
  <pre><code>$scope.deleteProject = function(projectName){
      var postData = {username: 'name', projectName: projectName};
      Project.deleteProject.delete({}, postData,
          function(res){
              alert('Project Deleted');
          },
          function(err){
              alert(err.data);
      });
  }
  </code></pre>
  
  <p>on the server side i have this:</p>
  
  <pre><code>var deleteProject = function(req, res){
      console.log(req.body);
      console.log(req.params);
      if (req.body.projectName){
          //do something
          return res.send(200);
      }
      else
          return res.send(400, 'no project name was specified');
  }
  </code></pre>
  
  <p>now for some reason there is no body at all!! it is empty.
  i have defined the route as app.delete.</p>
  
  <p>if i change the route in node.js to post and in angular.js to save it works fine.</p>
  
  <p>what am i missing here (banging my head).</p>
  
  <p>thanks.</p>