8 lines
195 B
Python
8 lines
195 B
Python
from slowapi import Limiter
|
|
from slowapi.util import get_remote_address
|
|
|
|
# Global SlowAPI Limiter instance
|
|
limiter = Limiter(
|
|
key_func=get_remote_address,
|
|
default_limits=["120/minute"]
|
|
)
|