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__":