var express = require('express');
_ = require('underscore')._
var request = require('request');
var router = express.Router({mergeParams: true});
var exec = require('child_process').exec;
var path = require('path');
var parentDir = path.resolve(process.cwd());

var jsonStream = require('express-jsonstream');


router.get('/', function(req, res, next) {
    res.json({'info' : 'This is the ControCurator API v0.1'});
});

router.post('/',function(req,res) {
    req.jsonStream()
        .on('object',console.log);
    return;
    

    var input = req.body;
    var amountofitems = input.length;

    var gooditems = 0;
    var baditems = 0;

    for (var i=0; i < amountofitems; i++)
    {
        var currentitem = input[i];
        if (!currentitem.hasOwnProperty('id') || !currentitem.hasOwnProperty('text')) //Test for an id and an actual body
        {
            baditems++;
            continue;
        }
        gooditems++;
    }
    var controscore = Math.random();

    res.json({'controversy':controscore,'totalItems':amountofitems,'goodItems':gooditems,'badItems':baditems});

});
module.exports = router;

@@ -259,57 +259,8 @@
 );%0A%0A
-var jsonStream = require('express-jsonstream');%0A%0A
 %0Arou
@@ -407,82 +407,8 @@
 ) %7B%0A
-    req.jsonStream()%0A        .on('object',console.log);%0A    return;%0A    %0A%0A
     

Revert back to limited situation