summaryrefslogtreecommitdiff
path: root/wk9/lect/hello/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'wk9/lect/hello/app.py')
-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)