From 2fc7978bcaa25a866aa4a7a5cbda24ae4c2e0b6f Mon Sep 17 00:00:00 2001 From: Farzam Mohammadi Date: Sun, 17 Jul 2022 15:49:18 -0400 Subject: [PATCH] Update author controller to return object on post --- app/api/controllers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controllers/author.py b/app/api/controllers/author.py index 4fd27b6..93c6294 100644 --- a/app/api/controllers/author.py +++ b/app/api/controllers/author.py @@ -39,7 +39,7 @@ def post(self): author = AuthorModel(name=name, profile_image=profile_image) author.save_to_db() - return messages.AUTHOR_ADDED_SUCCESSFULLY, 200 + return {"author": author.json()}, 200 @token_required @author_ns.doc(