title: how to extract URL parameter from POST request in nodejs and expressjs
body: <p>REQUEST URL <a href="http://localhost:9090/rest-api/fetchDetailedProductInfo?prodId=1&amp;tempId=123" rel="nofollow">http://localhost:9090/rest-api/fetchDetailedProductInfo?prodId=1&amp;tempId=123</a></p>
  
  <pre><code>fetchDetailedProductInfo: function (prodId) {                                      
      var self = this;
      var URL = 'http://localhost:9090/rest-api/fetchDetailedProductInfo'
      $.ajax({                                               
          url: URL,
          dataType: 'json',
          contentType:'json',
          type:'GET',
          data: {
              'prodId':prodId,
              'tempId':123
          },                       
          success:function(responce) {
              self.renderUI(responce.json);
          },
          error: function (err) {
              console.log('ERROR',err)
          }
      });                    
  },
  </code></pre>
  
  <p>@ SERVER SIDE</p>
  
  <pre><code>router.get('/rest-api/fetchDetailedProductInfo', function (req, res) {  
      var prodId = req.param('prodId');
      var tempId = req.param('tempId');
      res.send(prodId + '----' + tempId);
  }
  </code></pre>