From b3e757af884750ae5e1f421c790e63afe8c73a8f Mon Sep 17 00:00:00 2001 From: notplants Date: Tue, 15 Mar 2022 18:41:13 -0600 Subject: [PATCH] Copywriting --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index c71c930..1a79dfa 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ if not os.path.exists(DATA_DIR): os.mkdir(DATA_DIR) -@app.route("/") +@app.route("/index") def index(): return "Index!" @@ -21,7 +21,7 @@ def hello(): return "Hello World!" -@app.route("/form") +@app.route("/") def form(): return render_template( 'form.html',**locals()) @@ -36,7 +36,7 @@ def form_post(): file_path = os.path.join(DATA_DIR, filename) with open(file_path, 'w') as f: f.write(json.dumps(data)) - return "form submitted" + return "your form submission was saved, thank you" if __name__ == "__main__":