Skip to content

Instantly share code, notes, and snippets.

@afucher
Created March 5, 2015 14:11
Show Gist options
  • Save afucher/1b59c976aa41a1af6621 to your computer and use it in GitHub Desktop.
Save afucher/1b59c976aa41a1af6621 to your computer and use it in GitHub Desktop.
Retorna response de http.get no lugar do response da minha rota
express.get('/', function(req, res){
http.get('www.outrolugar.com.br/api/', function(response){
//Posso fazer isso???
//Ou como faço algo parecido
res = response;
res.end();
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment