v1
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
"""
|
||||
slowapi rate limiter setup.
|
||||
Import `limiter` here and attach it to the FastAPI app in main.py.
|
||||
"""
|
||||
from slowapi import Limiter
|
||||
from slowapi.util import get_remote_address
|
||||
|
||||
limiter = Limiter(key_func=get_remote_address, headers_enabled=True)
|
||||
Reference in New Issue
Block a user