title: Using the PUT method with Express.js
body: <p>I'm trying to implement update functionality to an Express.js app, and I'd like to use a PUT request to send the new data, but I keep getting errors using PUT.  From everything I've read, it's just a matter of using app.put, but that isn't working.  I've got the following in  my routes file: </p>
  
  <pre><code>send = function(req, res) { 
      req.send(res.locals.content);
  };
  
  app.put('/api/:company', function(res,req) {
      res.send('this is an update');
  }, send);
  </code></pre>
  
  <p>When I use postman to make a PUT request, I get a "cannot PUT /api/petshop" as an error.  I don't understand why I can't PUT, or what's going wrong.</p>