forked from orbit-oss/flask
Merge pull request #2746 from pallets/2742-empty-url-prefix
allow empty prefix and no lead slash in bp route
This commit is contained in:
commit
73bf519dad
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class BlueprintSetupState(object):
|
||||||
to the application. The endpoint is automatically prefixed with the
|
to the application. The endpoint is automatically prefixed with the
|
||||||
blueprint's name.
|
blueprint's name.
|
||||||
"""
|
"""
|
||||||
if self.url_prefix:
|
if self.url_prefix is not None:
|
||||||
rule = '/'.join((self.url_prefix, rule.lstrip('/')))
|
rule = '/'.join((self.url_prefix, rule.lstrip('/')))
|
||||||
options.setdefault('subdomain', self.subdomain)
|
options.setdefault('subdomain', self.subdomain)
|
||||||
if endpoint is None:
|
if endpoint is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue