Question: The following function returns the index page for a Flask route, but it's missing the Flask decorator: # MISSING CODE HERE def index(): ***List
The following function returns the index page for a Flask route, but it's missing the Flask decorator: # MISSING CODE HERE def index(): ***List all available api routes."** return ( f"Available Routes: " f"/api/v1.0/names " f"/api/v1.0/passengers" ) What line of code needs to be added above the function to route to the index?
Step by Step Solution
There are 3 Steps involved in it
Answer To route to the index you need to add the Flask d... View full answer
Get step-by-step solutions from verified subject matter experts
