title: Could not catch posted data in my routes.js
body: <p>express application. I am posting  data via ajax . Bu i could not catch data from my route. Here is my ajax :</p>
  
  <pre><code>function Confirme(commentid,status){
              $.ajax({
                  url: '/Management/Comment/Confirm/',
                  type: "POST",
                  data: {"id": commentid,"status": status}
  
              })
  </code></pre>
  
  <p>I am sending commentid(345345345) and status(0) to this function. (Tried in firebug also). And here is my routing codes:</p>
  
  <pre><code>app.post('/Management/Comment/Confirm/',function(req, res){
      if(!req.session.email){
          return res.render(__dirname+"../../../views/management/accessdenied.jade",{
          title: 'Dont have permission',
          stylesheet: 'accessdenied',
          error: 'You are not authorized to access this page'
          });
      }
      console.log('Is id correct:' +req.params.id);
      Comment.findByIdAndUpdate( req.params.id, {"status": 1}, function(err, result) {
          if (err) console.log(err);
          console.log("result:"+result);
          Comment.find({},function(err, comments){
              console.log("comments: "+comments)
              if(! comments.length) {
                  console.log('no comment');
              }
  
              return res.render(__dirname+"/views/commentindex",{
              title: 'comment list',
              stylesheet: 'commentindex',
              comments:comments
              });
  
          }); 
      });
  
  });
  </code></pre>
  
  <p>But this code is always return me to undefined:</p>
  
  <pre><code>console.log(req.params.id);
  </code></pre>
  
  <p>I checked in firebug. I think may be i could not send data to my ajax function. But not. Here is the firebug:</p>
  
  <p><img src="https://i.stack.imgur.com/pZTJ0.png" alt="enter image description here"></p>