Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions