(no title)
Killswitch | 10 years ago
app.get('/', function * () {
this.body = yield User.all()
})
vs app.get('/', function (req, res) {
User.all(function (err, users) {
if (err) throw err
res.end(users)
})
})Killswitch | 10 years ago
app.get('/', function * () {
this.body = yield User.all()
})
vs app.get('/', function (req, res) {
User.all(function (err, users) {
if (err) throw err
res.end(users)
})
})
joepie91_|10 years ago
rodrigogs|10 years ago