Introduction
The route decorator connects a web address to a function in your Flask app. It tells the app what to do when someone visits a specific URL.
When you want to show a homepage at '/'
When you want to create a page for '/about' or '/contact'
When you want to handle form submissions at a specific URL
When you want to build an API endpoint that responds to a URL
When you want to organize different pages or actions in your web app