Enable HTML5 mode for routing.

This commit is contained in:
yackob03 2013-10-10 19:06:04 -04:00
parent 5cca40e41d
commit ce81431cd3
7 changed files with 26 additions and 20 deletions

View file

@ -34,8 +34,9 @@ def load_user(username):
return None
@app.route('/', methods=['GET'])
def index():
@app.route('/', methods=['GET'], defaults={'path': ''})
@app.route('/<path:path>') # Catch all
def index(path):
return send_file('templates/index.html')