Skip to content

Commit

Permalink
docs : test 위해서 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Mar 21, 2024
1 parent 9df1954 commit 5835f06
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from flask import Flask
# , jsonify)
# from connection import s3_connection
# from config import BUCKET_NAME

app = Flask(__name__)

Expand All @@ -16,21 +13,5 @@ def hello_world(): # put application's code here
return 'post test'


# @app.route('/image', methods=['POST'])
# def test_image():
# s3 = s3_connection()
# try:
# with open('dd.jpeg', 'rb') as image_file:
# s3.put_object(
# Bucket=BUCKET_NAME,
# Body=image_file,
# Key='dd.jpeg',
# ContentType='image/jpeg'
# )
# return jsonify({'success': True})
# except Exception as e:
# return jsonify({'error': str(e)})


if __name__ == '__main__':
app.run(host='0.0.0.0', port='5000')

0 comments on commit 5835f06

Please sign in to comment.