Merge pull request #3150 from greyli/fix-route-defaults-doc

[Doc] Fix typo in code example for route defaults
This commit is contained in:
David Lord 2019-04-11 19:11:21 -07:00 committed by GitHub
commit 42b67a1f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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