From 0ba8317f8b725f2048b0ddbf5beec5681afab293 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 5 Jul 2012 22:31:17 +0200 Subject: o Automatically showing next/prev links if the collection has next/prev links. --- routes/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'routes') 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, ' ') }); -- cgit v1.2.3