Sending data from a express post request
<p>I'm playing around with Node.js and Express.</p>

<p>I've got something like this on my front end:</p>

<pre><code>$.ajax({
        type: "POST",
        url: window.location.href,
        dataType: "jsonp", // expecting cross domain requests later
        data: {"url":url}, // this is not relevant for this question
        success: function(data){
             console.log("data received");
        }
});
</code></pre>

<p>And here is my backend for express,</p>

<pre><code>app.post("/", function(req, res){
   res.send("Hello");    
}
</code></pre>

<p>However, the "Hello" doesn't get sent over. Is there a different syntax for sending data over when there is a post request? Am I missing something here?</p>