Question 10
Consider the following Python code snippet.
Filename: app.py
from flask import Flask, requestimport sysapp = Flask(__name__)
@app.route('/home', methods = sys.argv)def my_func(): if request.method == 'GET': return "<h1>Hello from POST</h1>"
elif request.method == 'POST': return "<h1>Hello from GET</h1>"
else: return "<h1>Please enter a valid HTTP method<h1>"
app.run(debug = True)If the above flask app is run using the command python app.py GET POST in one terminal, what will be the output on another terminal for command; curl http://127.0.0.1:5000/home ?