Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Derrick-Sherrill authored Mar 23, 2023
1 parent 89242a6 commit 039b823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/s3-create-bucket/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_aws_resource_s3_bucket():
# Pull S3 Bucket Object
# requires the user to send a payload of "bucket" and "key" to return an S3 object
@app.route('/get-object', methods=['GET', 'POST'])
def create_aws_resource_s3_bucket():
def get_aws_resource():
if request.method != 'POST':
return {'error': 'endpoint expected POST request with payload "bucket, key"'}
if not request.json:
Expand Down

0 comments on commit 039b823

Please sign in to comment.