var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

module.exports = router;

@@ -27,16 +27,71 @@
 ress');%0A
+var withConnection = require('../lib/withConnection');%0A
 var rout
@@ -226,16 +226,452 @@
 );%0A%7D);%0A%0A
+router.post('/authenticate', function(req, res, next) %7B%0A  var user;%0A  var data = %7B email: req.body.email, password: req.body.password %7D;%0A  var sql = 'SELECT * FROM users WHERE email = $1 LIMIT 1;';%0A  withConnection(function(client) %7B%0A    client.query(sql, %5Bdata.email%5D)%0A      .on('row', function(row) %7B%0A        user = row;%0A      %7D)%0A      .on('end', function() %7B%0A        client.end();%0A        return res.json(user);%0A      %7D);%0A  %7D);%0A%7D);%0A%0A
 module.e

Add authenticate endpoint (but not actually authenticating yet)