Merge branch '2.0.x'
This commit is contained in:
commit
7a73171edc
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1306,7 +1306,7 @@ class Flask(Scaffold):
|
|||
|
||||
.. versionchanged:: 1.0
|
||||
Exceptions are looked up by code *and* by MRO, so
|
||||
``HTTPExcpetion`` subclasses can be handled with a catch-all
|
||||
``HTTPException`` subclasses can be handled with a catch-all
|
||||
handler for the base ``HTTPException``.
|
||||
|
||||
.. versionadded:: 0.3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue