Question · Python course · Module 5: Flask and Web Apps
The @app.route decorator
What does the @app.route('/') decorator do in Flask?
Answer options
- Imports the routing module
- Maps a URL to a view function
- Creates a new database
- Starts the development server
You can check the correct answer by solving this task in the CodeWorlds game.