forked from orbit-oss/flask
Merge pull request #3019 from colincadams/patch-2
Clarify prefixing of urls for blueprint endpoints
This commit is contained in:
commit
7e65f1c5f1
1 changed files with 4 additions and 3 deletions
|
|
@ -75,11 +75,12 @@ implement a blueprint that does simple rendering of static templates::
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
When you bind a function with the help of the ``@simple_page.route``
|
When you bind a function with the help of the ``@simple_page.route``
|
||||||
decorator the blueprint will record the intention of registering the
|
decorator, the blueprint will record the intention of registering the
|
||||||
function `show` on the application when it's later registered.
|
function ``show`` on the application when it's later registered.
|
||||||
Additionally it will prefix the endpoint of the function with the
|
Additionally it will prefix the endpoint of the function with the
|
||||||
name of the blueprint which was given to the :class:`Blueprint`
|
name of the blueprint which was given to the :class:`Blueprint`
|
||||||
constructor (in this case also ``simple_page``).
|
constructor (in this case also ``simple_page``). The blueprint's name
|
||||||
|
does not modify the URL, only the endpoint.
|
||||||
|
|
||||||
Registering Blueprints
|
Registering Blueprints
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue