diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-07-09 08:56:57 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-07-09 08:56:57 +0000 |
commit | c49f2aa4c23a4688049e28cc154fb1de93a4e8fa (patch) | |
tree | d621a0a331d6378f9763fe2843a8f9af53b804c4 /wk9/lect/hello/app.py | |
parent | 92e2f7e5b2afa7d42af7f14ce84ce4a5b74b7657 (diff) |
Tue, Jul 9, 2024, 1:56 AM -07:00
Diffstat (limited to 'wk9/lect/hello/app.py')
-rw-r--r-- | wk9/lect/hello/app.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wk9/lect/hello/app.py b/wk9/lect/hello/app.py index 1368586..635671d 100644 --- a/wk9/lect/hello/app.py +++ b/wk9/lect/hello/app.py @@ -4,5 +4,10 @@ app = Flask(__name__) @app.route("/") def index(): + return render_template("index.html") + + +@app.route("/greet") +def greet(): name = request.args.get("name", "world") - return render_template("index.html", name=name) + return render_template("greet.html", name=name) |