Created
October 1, 2016 17:01
-
-
Save gpaulbr/8f99990036c47359224dd92528eee6ec to your computer and use it in GitHub Desktop.
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
server.get('/estabelecimentos/:id/especialidades', (req, res, next) => { | |
const url = 'http://mobile-aceite.tcu.gov.br:80/mapa-da-saude/rest/especialidades/unidade/' + req.params.id | |
let batatinha = req.params.id | |
axios.get(url) | |
.then(data => { | |
console.log(data) | |
res.send(response.data) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment