Add route for one parameter

This commit is contained in:
kleph 2020-02-20 12:41:24 +01:00
parent 6b0cba8511
commit 453ae87230

View file

@ -10,6 +10,7 @@ app = Flask(__name__)
@app.route('/') @app.route('/')
@app.route('/<int(min=0, max=23):hours>')
@app.route('/<int(min=0, max=23):hours>/<int(min=0, max=59):minutes>') @app.route('/<int(min=0, max=23):hours>/<int(min=0, max=59):minutes>')
def index(hours=None, minutes=None): def index(hours=None, minutes=None):
""" main and only app """ """ main and only app """