Commit fd7d1eff7be32a62eaa7c9f17b726332f1c4fd43
1 parent
67359414
Exists in
master
and in
1 other branch
Minor fix in support of callback
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
server.js
| ... | ... | @@ -23,6 +23,7 @@ app.get('/', function(req, res){ |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | 25 | app.post('/api', function(req, res){ |
| 26 | + console.log(req.body); | |
| 26 | 27 | /* Verifica se o paramêtro [servico] possui algum valor */ |
| 27 | 28 | if (req.body.servico !== '') { |
| 28 | 29 | /* Verifica qual é o Tipo de Serviço fornecido */ |
| ... | ... | @@ -98,7 +99,6 @@ app.post('/api', function(req, res){ |
| 98 | 99 | break; |
| 99 | 100 | |
| 100 | 101 | case 'video': |
| 101 | - console.log(req.body); | |
| 102 | 102 | /* Verifica se os paramêtros [posicao, tamanho, transparencia] possuem algum valor */ |
| 103 | 103 | if ((req.body.posicao !== '') && (req.body.tamanho !== '') && (req.body.transparencia !== '')) { |
| 104 | 104 | /* Verifica se os paramêtros [linguagem, posicao, tamanho, transparencia] possuem os seus únicos valores possíveis */ | ... | ... |