forked from orbit-oss/flask
document the blueprint param too
This commit is contained in:
parent
0f7b3a4f26
commit
fe1bf3c821
1 changed files with 2 additions and 3 deletions
|
|
@ -994,9 +994,7 @@ class Flask(_PackageBoundObject):
|
||||||
return self.session_interface.make_null_session(self)
|
return self.session_interface.make_null_session(self)
|
||||||
|
|
||||||
@setupmethod
|
@setupmethod
|
||||||
def register_blueprint(
|
def register_blueprint(self, blueprint, **options):
|
||||||
self, blueprint, **options
|
|
||||||
):
|
|
||||||
"""Register a :class:`~flask.Blueprint` on the application. Keyword
|
"""Register a :class:`~flask.Blueprint` on the application. Keyword
|
||||||
arguments passed to this method will override the defaults set on the
|
arguments passed to this method will override the defaults set on the
|
||||||
blueprint.
|
blueprint.
|
||||||
|
|
@ -1004,6 +1002,7 @@ class Flask(_PackageBoundObject):
|
||||||
Calls the blueprint's :meth:`~flask.Blueprint.register` method after
|
Calls the blueprint's :meth:`~flask.Blueprint.register` method after
|
||||||
recording the blueprint in the application's :attr:`blueprints`.
|
recording the blueprint in the application's :attr:`blueprints`.
|
||||||
|
|
||||||
|
:param blueprint: The blueprint to register.
|
||||||
:param url_prefix: Blueprint routes will be prefixed with this.
|
:param url_prefix: Blueprint routes will be prefixed with this.
|
||||||
:param subdomain: Blueprint routes will match on this subdomain.
|
:param subdomain: Blueprint routes will match on this subdomain.
|
||||||
:param url_defaults: Blueprint routes will use these default values for
|
:param url_defaults: Blueprint routes will use these default values for
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue