title: Callback in ajax request
body: <p>I have made API and trying use it in my jQuery scripts. But having problems with callbacks.
  My JavaScript:</p>
  
  <pre><code>function findAll() {
      var users;
      $.ajax({
          url: "/user",
          type: "GET",
          dataType: "json",
          success: function (data) {
              users = data;
          }
      });
      return users;
  }
  </code></pre>
  
  <p>Help me return received data, please.
  Thanks in advance.</p>