Merge branch 'main' into class-route

This commit is contained in:
Grey Li 2021-08-06 09:47:32 +08:00 committed by GitHub
commit e5fb65b171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 902 additions and 534 deletions

View file

@ -113,8 +113,8 @@ Method Based Dispatching
For RESTful APIs it's especially helpful to execute a different function
for each HTTP method. With the :class:`flask.views.MethodView` you can
easily do that. Each HTTP method maps to a function with the same name
(just in lowercase)::
easily do that. Each HTTP method maps to a method of the class with the
same name (just in lowercase)::
from flask.views import MethodView