title: How to pass the ajax get request data to nodejs GET route?
body: <p>This is my ajax request call</p>
  
  <pre><code>  $.ajax({
      url: '/refresh',
      type: 'GET',
      contentType: "application/json",
      data: {
          Name: $("#inputName").val(),
          Url: $("#inputUrl").val()
      },
      success: function(data) {
          console.log('form submitted.' + data);
      }
    });
  </code></pre>
  
  <p>This is the GET route in nodejs</p>
  
  <pre><code>app.get('/refresh', function(req, res) {
              console.log("My data" + JSON.stringify(req.body));
              //other operations
          }
  </code></pre>
  
  <p>How can i get the data which is passed from ajax call in my js?? Please help!! Thanks a lot!</p>