return full profile response

This commit is contained in:
2021-06-26 12:16:14 +02:00
parent 3bd9b03002
commit fc01bec163
4 changed files with 124 additions and 16 deletions

View File

@ -115,7 +115,9 @@ def get_user_profile(user_id):
if profile is None:
return make_response({}, 404)
return make_response({"profile": profile.to_dict()})
return make_response({
"profile": profile.to_dict(),
})
@app.route("/users/<user_id>/profile", methods=["POST"])