mirror of
https://github.com/handsomezhuzhu/QQuiz.git
synced 2026-02-20 20:10:14 +00:00
Document secure secrets and prune unused assets
This commit is contained in:
10
backend/rate_limit.py
Normal file
10
backend/rate_limit.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""Rate limiting utilities for the FastAPI application."""
|
||||
|
||||
from slowapi import Limiter
|
||||
from slowapi.util import get_remote_address
|
||||
|
||||
|
||||
limiter = Limiter(key_func=get_remote_address)
|
||||
|
||||
|
||||
__all__ = ["limiter"]
|
||||
Reference in New Issue
Block a user