Skip to content
Browse files

Merge pull request #7 from mohnish/patch-1

Update the route handler for `/stats`
  • Loading branch information...
2 parents ba4e319 + 0d8ebe2 commit 17da412a594b3243c80fd67505c43adb9ebeda2d @tj tj committed Dec 28, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 routes/main.js
View
3 routes/main.js
@@ -1,5 +1,4 @@
-
var rasterize = require('../lib/rasterize')
, ratelimit = require('../lib/ratelimit')
, Batch = require('../lib/batch')
@@ -23,7 +22,7 @@ app.get('/', function(req, res, next){
* GET stats.
*/
-app.get('/stats', function(req, res){
+app.get('/stats', function(req, res, next){
db.hgetall('screenshot:stats', function(err, obj){
if (err) return next(err);
res.send(obj);

0 comments on commit 17da412

Please sign in to comment.
Something went wrong with that request. Please try again.