Skip to content

Commit

Permalink
Update routes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rajanjha9235 authored Jun 3, 2024
1 parent d2fdb88 commit 3a4d62c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ def list_accounts():
######################################################################
# READ AN ACCOUNT
######################################################################
@app.route("/accounts/<int:account_id>",methods=["GET"])
@app.route("/accounts/<int:account_id>", methods=["GET"])
def read_account(account_id):
''' Reads an account based on the id that is requested
'''
account = Account.find(account_id)
if not account:
abort(status.HTTP_404_NOT_FOUND,f"Account with [{account_id}] not Found")
return account.serialize(),status.HTTP_200_OK
abort(status.HTTP_404_NOT_FOUND, f"Account with [{account_id}] not Found")
return account.serialize(), status.HTTP_200_OK


######################################################################
Expand Down

0 comments on commit 3a4d62c

Please sign in to comment.