Enable HTML5 mode for routing.
This commit is contained in:
parent
5cca40e41d
commit
ce81431cd3
7 changed files with 26 additions and 20 deletions
|
@ -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')
|
||||
|
||||
|
||||
|
|
Reference in a new issue