We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2c3bc1 commit 36d322aCopy full SHA for 36d322a
app.py
@@ -69,13 +69,13 @@ def get_results():
69
post_id = request.args.get('postId')
70
return jsonify(db.get_results(post_id))
71
72
-@app.route('/', defaults={'path': 'index.html'})
73
-@app.route('/about', defaults={'path': 'index.html'})
+@app.route('/about')
74
@app.route('/run/<path:path>')
75
@app.route('/edit/<path:path>')
76
@app.route('/results/<path:path>')
+@app.route('/', defaults={'path': 'index.html'})
77
def serve_static(path):
78
- return send_from_directory('public', path)
+ return send_from_directory('public', 'index.html')
79
80
if __name__ == '__main__':
81
if not os.path.exists('flask_session'):
0 commit comments