fixing DQ issues
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
# middleware/decorators.py
|
||||
"""Summary description ....
|
||||
|
||||
This module provides classes and functions for:
|
||||
- ....
|
||||
- ....
|
||||
- ....
|
||||
"""
|
||||
|
||||
from functools import wraps
|
||||
|
||||
from fastapi import HTTPException
|
||||
@@ -10,7 +18,7 @@ rate_limiter = RateLimiter()
|
||||
|
||||
|
||||
def rate_limit(max_requests: int = 100, window_seconds: int = 3600):
|
||||
"""Rate limiting decorator for FastAPI endpoints"""
|
||||
"""Rate limiting decorator for FastAPI endpoints."""
|
||||
|
||||
def decorator(func):
|
||||
@wraps(func)
|
||||
|
||||
Reference in New Issue
Block a user