Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var request = require('request');
var app = require('express')();
var results;
function logRes(){
console.log(results);
}
app.get('/storeData', minion1(req,res){
readResult(logRes)
});
function readResult(minion3){
request('http://someroute.com/api', minion2(err, response, body){
results=body;
minion3();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment