title: put is not working in express js
body: <p>I have POST and PUT that is referring to same FORM. when i click submit button only POST requesting is being processed( because both POST and PUT have got the same route name which is a action of FORM), How can I implement PUT ?</p>
  
  <p>//App.js</p>
  
  <pre><code>app.post('/addClassified',routes().saveClassified);  -- POST
  app.put('/addClassified',routes().updateClassified); -- PUT
  
  app.get('/newClassified',function(req,res){
      res.render('newClassifieds'); //Rendering form
  });
  </code></pre>
  
  <p>// newClassifieds.pug</p>
  
  <pre><code>// Method and action of FORM
  
  form(method='POST' action='/addClassified')
      button.btn.btn-primary(type='submit') Save
  </code></pre>
  
  <p>//routes.js   ROUTES </p>
  
  <p>// Save classified  -- POST</p>
  
  <pre><code>functions.saveClassified = function (req, res) {
       console.log(req.body.category);
  };
  </code></pre>
  
  <p>// PUT -- Update classified</p>
  
  <pre><code>functions.updateClassified = function (req, res) {
  
  };
  </code></pre>