diff --git a/app/api/controllers/author.py b/app/api/controllers/author.py index 4fd27b6..f6daf5e 100644 --- a/app/api/controllers/author.py +++ b/app/api/controllers/author.py @@ -38,8 +38,8 @@ def post(self): else: 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(