Question: The following function returns the index page for a Flask route, but it's missing the Flask decorator: def index(): List all available api routes. return

 The following function returns the index page for a Flask route,

The following function returns the index page for a Flask route, but it's missing the Flask decorator: def index(): """List all available api routes.""" return ( f"Available Routes: br/ " f"/api/v1.0ames br/ f"/api/v1.0/passengers" What line of code needs to be added above the function to route to the index? @app.route('/') app.route('/') index('/') route('/') Attempt \#1: 5/5 (Score: 0/5)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!