Merge pull request 'Fix 404 on trailing slash' (#12) from trailing_slash into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #12
This commit is contained in:
kleph 2020-03-06 09:35:53 +01:00
commit 735b092de1

View file

@ -7,7 +7,7 @@ from flask import render_template
# pylint: disable=invalid-name # pylint: disable=invalid-name
app = Flask(__name__) app = Flask(__name__)
app.url_map.strict_slashes = False
@app.route('/') @app.route('/')
@app.route('/<int(min=0, max=23):hours>') @app.route('/<int(min=0, max=23):hours>')