We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1b06c commit 93a6360Copy full SHA for 93a6360
ninja_extra/main.py
@@ -21,6 +21,7 @@
21
from ninja.openapi.docs import DocsBase, Swagger
22
from ninja.parser import Parser
23
from ninja.renderers import BaseRenderer
24
+from ninja.throttling import BaseThrottle
25
from ninja.types import DictStrAny, TCallable
26
27
from ninja_extra import exceptions, router
@@ -48,6 +49,7 @@ def __init__(
48
49
urls_namespace: Optional[str] = None,
50
csrf: bool = False,
51
auth: Optional[Union[Sequence[Callable], Callable, NOT_SET_TYPE]] = NOT_SET,
52
+ throttle: Union[BaseThrottle, List[BaseThrottle], NOT_SET_TYPE] = NOT_SET,
53
renderer: Optional[BaseRenderer] = None,
54
parser: Optional[Parser] = None,
55
openapi_extra: Optional[Dict[str, Any]] = None,
0 commit comments