Add route for one parameter
This commit is contained in:
parent
6b0cba8511
commit
453ae87230
1 changed files with 1 additions and 0 deletions
1
beer.py
1
beer.py
|
@ -10,6 +10,7 @@ app = Flask(__name__)
|
|||
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/<int(min=0, max=23):hours>')
|
||||
@app.route('/<int(min=0, max=23):hours>/<int(min=0, max=59):minutes>')
|
||||
def index(hours=None, minutes=None):
|
||||
""" main and only app """
|
||||
|
|
Loading…
Reference in a new issue