forked from orbit-oss/flask
Fix typo in URL defaults example
This commit is contained in:
parent
8c979698bd
commit
4df7b220fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue