Skip to content
Myr

allow empty prefix and no lead slash in bp route

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

authored by David Lord · committed by David Lord · parent 6b2127b · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/blueprints.py+1 added-1 removed
63 unmodified lines
64 """A helper method to register a rule (and optionally a view function)65 to the application. The endpoint is automatically prefixed with the66 blueprint's name.67 """68 if self.url_prefix:68 if self.url_prefix is not None:69 rule = '/'.join((self.url_prefix, rule.lstrip('/')))70 options.setdefault('subdomain', self.subdomain)71 if endpoint is None:72 endpoint = _endpoint_from_view_func(view_func)
373 unmodified lines