Permalink
Browse files

tweaked json strings

  • Loading branch information...
1 parent 32b475e commit e483715fdab1234aed5a92011a11e2ccf7660ee4 @danpalmer committed Apr 15, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 web/web.js
View
@@ -66,8 +66,10 @@ function runServer(exchange, queue) {
app.get('/data/:id', function (req, res) {
res.header('Content-Type', 'application/json');
redis.lrange('events:1:stream', 0, -1, function (err, data) {
- console.log(data);
- res.end(data);
+ for (var obj in data) {
+ res.send(obj);
+ }
+ res.end();
});
});

0 comments on commit e483715

Please sign in to comment.