var express = require('express');
var mongoose = require('mongoose');
var http = require('http');
var path = require('path');

var app = express();

app.configure(function() {
  app.use(app.router);
  app.use(express.errorHandler());
});

var User = require('./models/User');

app.get('/', function(req, res) {
  res.setHeader("Content-Type", "application/json");
  res.end(JSON.stringify({users: User.all()}));
});

var server = http.createServer(app);

server.listen(3000);
console.log("Running on port 3000");

@@ -366,47 +366,175 @@
  res
-.end(JSON.stringify(%7Busers: User.all()%7D
+Users = %7B%7D;%0A  User.find(%7B%7D, function(err, users) %7B%0A    users.forEach(function(user) %7B%0A      resUsers%5Buser._id%5D = user;%0A    %7D);%0A  %7D);%0A  res.send(JSON.stringify(resUsers
 ));%0A

index function