summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:10:18 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-09 09:10:18 +0000
commit66513fb8ec4b9cefc866534b32d610088aab5957 (patch)
tree65a8dfc3bf9a53915b4d7b6efe50496fe6007166
parent2d866724e41c236792572612c29122f498705c3a (diff)
Tue, Jul 9, 2024, 2:10 AM -07:00
-rw-r--r--wk9/lect/hello/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk9/lect/hello/app.py b/wk9/lect/hello/app.py
index 635671d..347ff05 100644
--- a/wk9/lect/hello/app.py
+++ b/wk9/lect/hello/app.py
@@ -7,7 +7,7 @@ def index():
return render_template("index.html")
-@app.route("/greet")
+@app.route("/greet", methods=["POST"])
def greet():
name = request.args.get("name", "world")
return render_template("greet.html", name=name)