summaryrefslogtreecommitdiff
path: root/routes/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/routes/index.js b/routes/index.js
index 73f82ab..fb81a41 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -86,12 +86,11 @@ exports.render = function(req, res) {
sendErr(req, res, 'Unable to parse JSON: ' + e, httpResponse);
return;
}
- var collection = collection_json.fromObject(parsedBody).collection;
res.render('data', {
urlgenerator: urlgenerator(req),
url: req.query.url, referer: req.query.referer,
params: params,
- collection: collection,
+ root: collection_json.fromObject(parsedBody),
httpResponse: httpResponse,
formattedBody: JSON.stringify(parsedBody, null, ' ')
});