misc
This commit is contained in:
@ -50,7 +50,8 @@ class Radio(FastAPI):
|
||||
for endpoint, handler in self.endpoints.items():
|
||||
app.add_api_route(
|
||||
f"/{endpoint}", handler, methods=["POST"], include_in_schema=True,
|
||||
dependencies=[Depends(RateLimiter(times=10, seconds=5))],
|
||||
dependencies=[Depends(
|
||||
RateLimiter(times=10, seconds=2))] if not endpoint == "radio/np" else None,
|
||||
)
|
||||
|
||||
# NOTE: Not in loop because method is GET for this endpoint
|
||||
|
Reference in New Issue
Block a user