Fake / Backend /app /limiter.py
Ravi1212's picture
uploaded the all the dependencies
bf5067d verified
raw
history blame contribute delete
234 Bytes
from slowapi import Limiter
from slowapi.util import get_remote_address
# Shared rate limiter — uses client IP as the key.
# Import this instance in main.py and all route files.
limiter = Limiter(key_func=get_remote_address)