Commit cee6d4c9d9d08d16f203d65908cd767070e8b6d9
1 parent
db6b7543
Exists in
master
and in
1 other branch
Correções nas requisições
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
server.js
| ... | ... | @@ -119,7 +119,7 @@ app.get('/api/requests/', function(req,res) { |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | app.get('/api/requests/:id', function(req, res) { |
| 122 | - db.findById(Request, req.param.id, function(result) { | |
| 122 | + db.findById(Request, req.param("id"), function(result) { | |
| 123 | 123 | if (result !== null) { |
| 124 | 124 | res.send(200, result); |
| 125 | 125 | } else { | ... | ... |