Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

[Doc] Fix typo in code example for route defaults

authored by David Lord · committed by GitHub · parents 5cb4b73, 4df7b22 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/api.rst+1 added-1 removed
724 unmodified lines
725requests, make sure the default route only handles ``GET``, as redirects726can't preserve form data. ::727728 @app.route('/region/', defaults={'id': 1})729 @app.route('/region/<id>', methods=['GET', 'POST'])729 @app.route('/region/<int:id>', methods=['GET', 'POST'])730 def region(id):731 pass732733Here are the parameters that :meth:`~flask.Flask.route` and
100 unmodified lines