Created
March 5, 2015 14:11
-
-
Save afucher/1b59c976aa41a1af6621 to your computer and use it in GitHub Desktop.
Retorna response de http.get no lugar do response da minha rota
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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