diff --git a/routes/storage.js b/routes/storage.js index 139d81fcfd1f3d4ebfe59e2956a28e058a7c74b7..773d966308f086a669618ac27403130552a0c2cb 100644 --- a/routes/storage.js +++ b/routes/storage.js @@ -50,7 +50,8 @@ router.post('/', function(req, res, next){ } else { db.close(); - res.sendStatus(201); + res.statusCode = 201; + res.send(r.insertedId); }