Further limit the index endpoint (#1950)

This commit is contained in:
Adrià Casajús 2023-11-21 17:44:33 +01:00 committed by GitHub
parent 31896ff262
commit f81f8ca032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ def get_aliases():
@api_bp.route("/v2/aliases", methods=["GET", "POST"])
@limiter.limit(
"15/minute",
"5/minute",
)
@require_api_auth
def get_aliases_v2():

View file

@ -58,7 +58,7 @@ def get_stats(user: User) -> Stats:
exempt_when=lambda: request.form.get("form-name") != "create-random-email",
)
@limiter.limit(
"10/minute",
"5/minute",
methods=["GET"],
)
@login_required