From 0ee358e21753d6f686ca44062027e67a32b73120 Mon Sep 17 00:00:00 2001 From: Simra Shahid Date: Fri, 12 Jun 2026 12:05:13 +0530 Subject: [PATCH] fix: apply rate limiting to admin delete endpoint --- backend/app/api/v1/profiles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/api/v1/profiles.py b/backend/app/api/v1/profiles.py index a0a5f41b..bbef3770 100644 --- a/backend/app/api/v1/profiles.py +++ b/backend/app/api/v1/profiles.py @@ -186,6 +186,7 @@ async def delete_profile( description="Unique slug of the environment profile to delete.", examples=["pytorch-cu121"], ), + _rate_limit: None = Depends(general_rate_limit), _auth: None = Depends(require_admin), ) -> None: """