Skip to content
Myr

Clarify prefixing of URLs for blueprint endpoints

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

Clarify that endpoint names are prefixed by the name of the blueprint, but the URL is not automatically prefixed.

authored by Colin Adams · committed by David Lord · parent 15c079f · Browse files · 1 file+4 added−3 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+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:docs/blueprints.rst+4 added-3 removed
73 unmodified lines
74 except TemplateNotFound:75 abort(404)7677When you bind a function with the help of the ``@simple_page.route``78decorator the blueprint will record the intention of registering the79function `show` on the application when it's later registered.78decorator, the blueprint will record the intention of registering the79function ``show`` on the application when it's later registered.80Additionally it will prefix the endpoint of the function with the81name of the blueprint which was given to the :class:`Blueprint`82constructor (in this case also ``simple_page``).82constructor (in this case also ``simple_page``). The blueprint's name83does not modify the URL, only the endpoint.8485Registering Blueprints86----------------------87
188 unmodified lines