From eb645d298cd563df306591ca19657fb76dfe1c39 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 24 Jul 2012 10:29:47 +0200 Subject: [PATCH] More embedded comments --- app/controllers/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/app.js b/app/controllers/app.js index e87172b0..9e5148f3 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -12,6 +12,8 @@ // - sql only, provided the subdomain exists in CartoDB and the table's sharing options are public // // eg. vizzuality.cartodb.com/api/v1/?sql=SELECT * from my_table +// +// var express = require('express') , app = express.createServer( express.logger({ @@ -47,7 +49,7 @@ function handleQuery(req, res) { var limit = parseInt(req.query.rows_per_page); var offset = parseInt(req.query.page); var format = req.query.format; - var dp = req.query.dp; + var dp = req.query.dp; // decimal point digits (defaults to 6) // sanitize and apply defaults to input dp = (dp === "" || _.isUndefined(dp)) ? '6' : dp;