Question 24
Consider the following flask application.
app.py
from flask import Flask, abort, requestapp = Flask(__name__)
data = {"CS2001":"DBMS","CS2003":"MAD-I","CS2006":"MAD-II"}@app.route('/login')def login(): username = request.args.get('uname') if username not in data: abort(400, "Bad Request: Invalid Username") return f'<h1>Welcome to {data[username]} course!</h1>'
app.run(debug=True)Which of the following statements is/are true if the application is running locally on http://127.0.0.1:5000 ?