res.json express not working
<p>I'm trying to run a simple response.json() with express but it doesn't make the json itself.</p>

<p>The node.js file: server/app.js</p>

<pre><code>"use strict";

let express = require('express');
let app = express();

app.use(express.static(__dirname + "/../client"));

app.get('/sports', function(request, response) {
  response.json( ["Cycling", "Weightlifting"] );
});

app.listen(8181, () =&gt; console.log("Listening on 8181"));
</code></pre>

<p>The terminal runing the server:</p>

<pre><code>$ node app.js 
Listening on 8181
</code></pre>

<p>The "test" for the response.json():</p>

<pre><code>$ curl -i localhost:8181/sports
HTTP/1.1 404 Not Found
X-Powered-By: Express
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 19
Date: Fri, 10 Jun 2016 20:23:17 GMT
Connection: keep-alive

Cannot GET /sports
</code></pre>

<p>I really don't know what is going on because this is an example of a video in codeschool and is a copy of this git commit and everything looks the same :( <a href="https://github.com/codeschool/OlympicsMEAN/commit/767c89b8b0025861cefac910f98d79ef52cb3497" rel="nofollow">https://github.com/codeschool/OlympicsMEAN/commit/767c89b8b0025861cefac910f98d79ef52cb3497</a></p>

<p>Thanks</p>