Skip to content
Snippets Groups Projects
Commit bb21fae5 authored by Someshwar, Rudra (PG/T - Comp Sci & Elec Eng)'s avatar Someshwar, Rudra (PG/T - Comp Sci & Elec Eng)
Browse files

Update file ec2_function.py

parent aa742442
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,10 @@ import math
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello from Flask!'
@app.route('/work', methods=['POST'])
def run_simulation():
# Parse the JSON input data
......@@ -76,3 +80,6 @@ def run_simulation():
# 'result': result
# }
# return jsonify(response_json)
if __name__ == '__main__':
app.run()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment