Skip to content

Instantly share code, notes, and snippets.

@gpaulbr
Created October 1, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpaulbr/8f99990036c47359224dd92528eee6ec to your computer and use it in GitHub Desktop.
Save gpaulbr/8f99990036c47359224dd92528eee6ec to your computer and use it in GitHub Desktop.
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