Update code via agent code generation
This commit is contained in:
parent
441ca423a5
commit
d1e61b66a6
5
app/core/rate_limiter.py
Normal file
5
app/core/rate_limiter.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from slowapi import Limiter
|
||||||
|
from slowapi.util import get_remote_address
|
||||||
|
|
||||||
|
# Create a limiter instance with rate limiting based on client IP address
|
||||||
|
limiter = Limiter(key_func=get_remote_address)
|
Loading…
x
Reference in New Issue
Block a user