diff options
Diffstat (limited to 'wk9/lect/froshims/app.py')
-rw-r--r-- | wk9/lect/froshims/app.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wk9/lect/froshims/app.py b/wk9/lect/froshims/app.py index de6ec44..f083e51 100644 --- a/wk9/lect/froshims/app.py +++ b/wk9/lect/froshims/app.py @@ -5,3 +5,9 @@ app = Flask(__name__) @app.route("/") def index(): return render_template("index.html") + +@app.route("/register", methods=["POST"]) +def register(): + + if not request.form.get("name"): + return "failure" |