From fa11e38c6f1f3a9e26e3904955028c8add4e2bfc Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 2 Oct 2022 14:13:44 -0400 Subject: [PATCH] Redirect /create_account GET to / --- undercover/routes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/undercover/routes.py b/undercover/routes.py index c84c5cd..2cc9604 100644 --- a/undercover/routes.py +++ b/undercover/routes.py @@ -118,6 +118,11 @@ def login() -> Response | str: return render_index(status=404) +@writing_blueprint.route('/create_account', methods=['GET']) +def create_account_redirect() -> Response: + return redirect('/') + + @writing_blueprint.route('/create_account', methods=['POST']) def create_account() -> Response: email_address = request.form['login']