@@ -60,6 +60,7 @@ def create_accounts():
6060######################################################################
6161# LIST ALL ACCOUNTS
6262######################################################################
63+
6364@app .route ("/accounts" , methods = ["GET" ])
6465def list_accounts ():
6566 """
@@ -94,6 +95,7 @@ def get_accounts(account_id):
9495######################################################################
9596# UPDATE AN EXISTING ACCOUNT
9697######################################################################
98+
9799@app .route ("/accounts/<int:account_id>" , methods = ["PUT" ])
98100def update_accounts (account_id ):
99101 """
@@ -114,6 +116,7 @@ def update_accounts(account_id):
114116######################################################################
115117# DELETE AN ACCOUNT
116118######################################################################
119+
117120@app .route ("/accounts/<int:account_id>" , methods = ["DELETE" ])
118121def delete_accounts (account_id ):
119122 """
@@ -132,7 +135,6 @@ def delete_accounts(account_id):
132135# U T I L I T Y F U N C T I O N S
133136######################################################################
134137
135-
136138def check_content_type (media_type ):
137139 """Checks that the media type is correct"""
138140 content_type = request .headers .get ("Content-Type" )
0 commit comments