From e475585e76e4133abfe11c2ebed68f7f19756bcc Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 20:38:23 +0300 Subject: [PATCH] returning msg on creation --- SE_API/MessageRoutes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SE_API/MessageRoutes.py b/SE_API/MessageRoutes.py index 5942b85..cb3eee1 100644 --- a/SE_API/MessageRoutes.py +++ b/SE_API/MessageRoutes.py @@ -92,8 +92,9 @@ def createMessage(token): db.put(msg) db.save - return created() - + return Response(response=json.dumps(msg), + status=200, + mimetype="application/json")