Skip to content

Instantly share code, notes, and snippets.

@ashishmadeti
ashishmadeti / PetController.js
Created March 9, 2016 10:17
Async 'auto' example for Sails.js (A framework for Node.js)
module.exports = {
feedTwoDogs: function(req, res) {
async.auto({
getDogFood: function(callback) {
food = {
tommy: 200,
lucy: 350
}
callback(null, food)
},