Commit d8abec1f authored by andreagerino's avatar andreagerino

...

parent 2b3f3f0c
...@@ -50,7 +50,8 @@ router.post('/', function(req, res, next){ ...@@ -50,7 +50,8 @@ router.post('/', function(req, res, next){
} else { } else {
db.close(); db.close();
res.sendStatus(201); res.statusCode = 201;
res.send(r.insertedId);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment