title: Why do my rest endpoints not work on my node server?
body: <p>My index.js file looks like this: </p>
  
  <pre><code>var http = require('http');
  var express = require('express');
  var path = require('path');
  var bodyParser = require('body-parser')
  
  var app = express();
  var currentVideo = 'https://www.youtube.com/embed/9Q-ovNuireY';
  
  // parse application/json
  // parse application/x-www-form-urlencoded
  app.use(bodyParser.urlencoded({ extended: false }))
  app.use(bodyParser.json())
  app.use(express.static(path.join(__dirname, 'public')));
  
  app.get('/', function(res) {
    console.log("sup");
  });
  
  app.get('/currentVideo', function(req, res) {
    res.send(200, {youtubeSrc: currentVideo});
  });
  
  http.createServer(app).listen(process.env.PORT ||3000, function() {
    console.log('Example app listening on port 3000!');
  });
  </code></pre>
  
  <p>My static page in public loads up and my server starts up fine and prints out the Example app log.  When I try to hit my get endpoint though it doesn't work.  I've been hitting <a href="http://localhost" rel="nofollow">http://localhost</a>:{port}/currentVideo and I get a 404.</p>