Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 234 Bytes
exports.tasks = (head, req) ->
start
code: 200
headers:
"Content-Type": "application/json"
send "["
first = yes
while row = getRow()
send "," if not first
send JSON.stringify row.doc
first = no
"]"