Fix bug wrapping endpoints.

This commit is contained in:
Itamar Turner-Trauring 2022-01-12 11:16:21 -05:00
parent 6e2aaa8391
commit 2bccb01be4

View File

@ -110,6 +110,7 @@ def _authorized_route(app, required_secrets, *route_args, **route_kwargs):
def decorator(f):
@app.route(*route_args, **route_kwargs)
@_authorization_decorator(required_secrets)
@wraps(f)
def handle_route(*args, **kwargs):
return f(*args, **kwargs)