from flask import Flask, redirect, url_for app=Flask(__name__) @app.route("/") def home(): return "Hello world" @app.route("/mati") def matifn(): return "Mati leht" @app.route("/") def user(name): return f"Hello {name}" @app.route("/admin") def admin(): return redirect(url_for("user", name="Admin!!!")) if __name__=="__main__": app.run(debug=True)