title: AngularJS $resource calls the wrong API URL when using method:POST
body: <p>Not the easiest issue to put into a title.</p>
  
  <p>Anyhow, my app is built on <code>nodejs</code>/<code>expressjs</code>and has an API set up for the url:</p>
  
  <p><strong>EDIT: The current code I'm using is:</strong></p>
  
  <pre><code>$scope.updateProduct = $resource('/api/updateProduct/:product/:param/:value',{},{
    query: {method:'GET'},
    post: {method:'POST'},
    save: {method:'PUT', params: {brand: '@brand', param:'@param', value:'@value'}},
    remove: {method:'DELETE'}
  });
  $scope.updateProduct.save({
      product : $scope.post._id, 
      param: 'likes', 
      value: $scope.user._id
    }); 
  </code></pre>
  
  <p>At present it calls <code>/api/updateProduct</code> instead of <code>/api/updateProduct/&lt;product&gt;/&lt;param&gt;/&lt;value&gt;</code> like it's supposed to / like it does when I perform <code>$scope.updateProduct.get()</code>.</p>
  
  <p>In my console I see (as an example):</p>
  
  <pre><code> PUT /api/updateBrand/Quay%20Eyewear%20Australia/userTags/sunglasses,%20classic 200 30ms - 2.31kb
  </code></pre>
  
  <p>However, the API isn't actually accessed/nothing happens. Interestingly, if I go to <code>localhost:5000/api/updateBrand/Quay%20Eyewear%20Australia/userTags/sunglasses,%20classic</code> in my browser, it posts the correct data and updates the product in my database, so it's definitely an error with the way the <code>$resource</code> is being called.</p>