Files
F-r-ldraledigplannerare/backend/app/rate_limit.py
T
2026-06-14 09:58:30 +02:00

11 lines
296 B
Python

"""Shared rate-limiter instance.
Lives in its own module so routers can import it without triggering the
circular import that would occur if they imported from app.main.
"""
from slowapi import Limiter
from slowapi.util import get_remote_address
limiter = Limiter(key_func=get_remote_address)