var express = require('express');
var $ = require('jquery');
var _ = require('underscore');
var app = express();

var data = {
  channels: [
  {name: "##ccis"},
  {name: "#nuhacks"}
  ]
};

app.use(express.static('public'));

app.get('/', function(req, res) {
  res.sendfile("index.html");
})

app.get('/channels', function(req, res) {
  res.json(_.pluck(data.channels, 'name'));
});

app.listen(process.env.PORT || 4730);
@@ -133,24 +133,29 @@
 nnels: %5B%0A  %7B
+%0A    
 name: %22##cci
@@ -160,14 +160,67 @@
 cis%22
+,%0A    users: %5B%22somealumni%22, %22molly%22, %22alice%22%5D%0A  
 %7D,%0A  %7B
+%0A    
 name
@@ -231,16 +231,50 @@
 nuhacks%22
+,%0A    users: %5B%22molly%22, %22alice%22%5D%0A  
 %7D%0A  %5D%0A%7D;
@@ -417,24 +417,24 @@
 req, res) %7B%0A
-
   res.json(_
@@ -466,24 +466,293 @@
 me'));%0A%7D);%0A%0A
+app.get('/users/:channel', function(req, res) %7B%0A  var channel = _.findWhere(data.channels, %7Bname: req.params.channel%7D)%0A  if (!channel) %7B%0A    res.statusCode = 404;%0A    return res.send('No channel %22' + req.params.channel + '%22 found.')%0A  %7D%0A  res.json(channel.users);%0A%7D);%0A%0A
 app.listen(p

Add users endpoint