Glossary

`@app.route("/")`

this is a **decorator**, a Python feature that wraps a function with additional behavior. Here, it registers the function below it as the handler for the URL path `/`. When Flask receives a request for `/`, it calls `index()` and returns whatever that function returns as the HTTP response.

Learn More

Related Terms