|
|
@ -952,7 +952,7 @@ class Flask(_PackageBoundObject): |
|
|
|
:class:`~werkzeug.routing.Rule` object. |
|
|
|
:class:`~werkzeug.routing.Rule` object. |
|
|
|
""" |
|
|
|
""" |
|
|
|
def decorator(f): |
|
|
|
def decorator(f): |
|
|
|
endpoint = options.pop("endpoint", None) |
|
|
|
endpoint = options.pop('endpoint', None) |
|
|
|
self.add_url_rule(rule, endpoint, f, **options) |
|
|
|
self.add_url_rule(rule, endpoint, f, **options) |
|
|
|
return f |
|
|
|
return f |
|
|
|
return decorator |
|
|
|
return decorator |
|
|
|