Commit e04b11a1e3334cf41f0d8022500672858f2e38d5
1 parent
623afa4e
Exists in
master
and in
1 other branch
Minor fix in support of callback
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
server.js
| ... | ... | @@ -24,9 +24,9 @@ app.get('/', function(req, res){ |
| 24 | 24 | |
| 25 | 25 | app.post('/api', function(req, res){ |
| 26 | 26 | /* Verifica se o paramêtro [servico] possui algum valor */ |
| 27 | - if (req.query.servico !== '') { | |
| 27 | + if (req.body.servico !== '') { | |
| 28 | 28 | /* Verifica qual é o Tipo de Serviço fornecido */ |
| 29 | - switch(req.query.servico) { | |
| 29 | + switch(req.body.servico) { | |
| 30 | 30 | /* Case para o Tipo de Serviço: Texto */ |
| 31 | 31 | case 'texto': |
| 32 | 32 | /* Verifica se os paramêtros [transparencia, texto] possuem algum valor */ | ... | ... |