feat: Add rate limiting middleware with SlowAPI

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-10 16:17:53 +00:00
parent 0b3f9212d1
commit 8d347e0a53
10 changed files with 659 additions and 0 deletions
+7
View File
@@ -27,6 +27,13 @@ logger = logging.getLogger(__name__)
router = APIRouter()
def get_limiter():
"""Get the limiter from app state."""
from app.main import app
return app.state.limiter
@router.get("/files")
@require_login
def list_files_api(