Fix typo in URL defaults example

This commit is contained in:
Grey Li 2019-04-12 09:45:58 +08:00
parent 8c979698bd
commit 4df7b220fa

View file

@ -726,7 +726,7 @@ requests, make sure the default route only handles ``GET``, as redirects
can't preserve form data. ::
@app.route('/region/', defaults={'id': 1})
@app.route('/region/<id>', methods=['GET', 'POST'])
@app.route('/region/<int:id>', methods=['GET', 'POST'])
def region(id):
pass