From bb21fae545246bc8975d87f2cd48754d2400ab34 Mon Sep 17 00:00:00 2001 From: "Someshwar, Rudra (PG/T - Comp Sci & Elec Eng)" <rs01922@surrey.ac.uk> Date: Sat, 13 May 2023 18:01:55 +0000 Subject: [PATCH] Update file ec2_function.py --- ec2_function.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ec2_function.py b/ec2_function.py index 360974c..d444da4 100644 --- a/ec2_function.py +++ b/ec2_function.py @@ -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 -- GitLab