Skip to content
marktyers edited this page Feb 2, 2014 · 1 revision

Getting the current URL:

var fullURL = req.protocol + "://" + req.get('host') + req.url

Looping through records one at a time:

database.each(sql, function(err, row) {
    console.log(row.id + ": " + row.title)
    genres.push(row.title)
})

Clone this wiki locally