Skip to content

Commit

Permalink
Add method ID to response when creating a new method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingimarsson committed May 17, 2022
1 parent 395868a commit 799031a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/app/routes/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ def post(self, id):

logger.info("Added method (type: {}) for user {} (ID: {})".format(method.type, user.username, user.id))

return jsonify({'message': 'Successful'}), 200
return jsonify({
'message': 'Successful',
'method_id': method.id,
}), 200


class UserMethodDetailsView(MethodView):
Expand Down

0 comments on commit 799031a

Please sign in to comment.