Skip to content
Myr

Fix typo in URL defaults example

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

authored by Grey Li · committed by Grey Li · parent 8c97969 · 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