Commit 7dfa5b5a19a7b036a2228d3a9b17e669ea409d61
1 parent
08ee7ca6
Exists in
master
and in
1 other branch
Minor fix in support of callback
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
server.js
| @@ -23,8 +23,9 @@ app.get('/', function(req, res){ | @@ -23,8 +23,9 @@ app.get('/', function(req, res){ | ||
| 23 | }); | 23 | }); |
| 24 | 24 | ||
| 25 | app.post('/api', function(req, res){ | 25 | app.post('/api', function(req, res){ |
| 26 | - console.log('Query: \n' + req.query); | ||
| 27 | - console.log('Params: \n' + req.params); | 26 | + console.log(req.query); |
| 27 | + console.log(req.params); | ||
| 28 | + console.log(req.body); | ||
| 28 | /* Verifica se o paramêtro [servico] possui algum valor */ | 29 | /* Verifica se o paramêtro [servico] possui algum valor */ |
| 29 | if (req.query.servico !== '') { | 30 | if (req.query.servico !== '') { |
| 30 | /* Verifica qual é o Tipo de Serviço fornecido */ | 31 | /* Verifica qual é o Tipo de Serviço fornecido */ |