Question 12
Consider the following flask application running locally on http://127.0.0.1:5000.
from flask import Flask, request
app = Flask(__name__)
@app.route('/endpoint/<username>')def func(username): return { "username": username }, 200
@app.errorhandler(404)def notfound(error): return { "message": "invalid endpoint!" }
app.run(debug = True)Which of the following statements is/are correct for the URL:
http://127.0.0.1:5000/endpoint/user1/developer