title: How to get data from jQuery ajax post with ExpressJS
body: <p>Hi so I have a jquery post data that i'm sending:</p>
  
  <pre><code>                 $.ajax({
                      type: "POST",
                      url: app.config.backend_2 + '/notifications/usernames',
                      data: data,
                      contentType: 'application/javascript',
                      dataType: 'json',
                      success: function (result) {
                          console.log(result);
                      }
                  });
  </code></pre>
  
  <p>and this is my express receiver:</p>
  
  <pre><code> exports.save_usernames_for_notifications = function (req, res, next) {
      var start = function () {
         console.log(req);
      };
  
       start();
  
  };
  </code></pre>
  
  <p>What do I do to get the data from the ajax to log it in the <code>save_username_for_notifications</code> function?</p>