diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-05 22:31:17 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-05 22:31:17 +0200 |
commit | 0ba8317f8b725f2048b0ddbf5beec5681afab293 (patch) | |
tree | 2e3ef377a4026b133fe80871e4dcb361528c809b /routes | |
parent | 6bd3d074947f9a12d5f6ab2f42bdaa7f0b036bd7 (diff) | |
download | collection-json-explorer-0ba8317f8b725f2048b0ddbf5beec5681afab293.tar.gz collection-json-explorer-0ba8317f8b725f2048b0ddbf5beec5681afab293.tar.bz2 collection-json-explorer-0ba8317f8b725f2048b0ddbf5beec5681afab293.tar.xz collection-json-explorer-0ba8317f8b725f2048b0ddbf5beec5681afab293.zip |
o Automatically showing next/prev links if the collection has next/prev links.
Diffstat (limited to 'routes')
-rw-r--r-- | routes/index.js | 3 |
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, ' ') }); |