added submit redirect

This commit is contained in:
micaiah parker 2018-08-09 23:57:02 -04:00
parent 0dba8900eb
commit 55b93a18f9
1 changed files with 2 additions and 1 deletions

3
app.py
View File

@ -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'))