summaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-05 22:31:17 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-05 22:31:17 +0200
commit0ba8317f8b725f2048b0ddbf5beec5681afab293 (patch)
tree2e3ef377a4026b133fe80871e4dcb361528c809b /routes
parent6bd3d074947f9a12d5f6ab2f42bdaa7f0b036bd7 (diff)
downloadcollection-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.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, ' ')
});