From d8abec1fff41d32e1d48dbc40e8aa6d3071e12b5 Mon Sep 17 00:00:00 2001 From: andreagerino Date: Fri, 27 Nov 2015 18:57:41 +0100 Subject: [PATCH] ... --- routes/storage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/storage.js b/routes/storage.js index 139d81f..773d966 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); } -- 2.18.1