diff --git a/docs/quickstart.rst b/docs/quickstart.rst index c92784f3..a4494f43 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -258,6 +258,8 @@ accessing URLs. By default, a route only answers to `GET` requests, but that can be changed by providing the `methods` argument to the :meth:`~flask.Flask.route` decorator. Here are some examples:: + from flask import request + @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST':