fix(rate-limit): apply on router to avoid TypeError on ws endpoint
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from app.dependencies.rate_limit import LIMITERS
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter(prefix="/api/private")
|
||||
router = APIRouter(prefix="/api/private", dependencies=LIMITERS)
|
||||
|
||||
Reference in New Issue
Block a user