From 55b93a18f9c9367d972ea8dc1e8520c22a62dcf9 Mon Sep 17 00:00:00 2001 From: micaiah parker Date: Thu, 9 Aug 2018 23:57:02 -0400 Subject: [PATCH] added submit redirect --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 95ac9f0..e4f1b67 100644 --- a/app.py +++ b/app.py @@ -15,6 +15,7 @@ def _get_stats(): def get_data(): return jsonify(data) -@app.route('/submit') +@app.route('/submit', methods=["POST"]) def submit(): return redirect(url_for('index')) +