Skip to content
Myr

Add endpoint parameter documentation to the route decorator.

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

authored by Pedro Algarvio · committed by Pedro Algarvio · parent 68ec5a3 · Browse files · 1 file+3 added−0 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+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:flask/app.py+3 added
936 unmodified lines
937 :param subdomain: specifies the rule for the subdomain in case938 subdomain matching is in use.939 :param strict_slashes: can be used to disable the strict slashes940 setting for this rule. See above.941 :param endpoint: Since version 0.8 you can also pass the enpoint,942 it will be used instead of generating the endpoint943 from the function name.944 :param options: other options to be forwarded to the underlying945 :class:`~werkzeug.routing.Rule` object.946 """947 def decorator(f):
593 unmodified lines