Decorators - Flask
- In Flask we use decorators to designate function as "routes".
examples/decorators/flask_app.py
from flask import Flask app = Flask(__name__) @app.route("/") def main(): return "Hello World!" @app.route("/login") def login(): return "Showing the login page ..."
FLASK_APP=flask_app flask run