Skip to content

Commit

Permalink
Further limit the index endpoint (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
acasajus authored Nov 21, 2023
1 parent 31896ff commit f81f8ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/views/alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f81f8ca

Please sign in to comment.