Skip to content

Commit

Permalink
added throttle parameter in NinjaExtraAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
eadwinCode committed Jul 1, 2024
1 parent ff1b06c commit 93a6360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ninja_extra/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ninja.openapi.docs import DocsBase, Swagger
from ninja.parser import Parser
from ninja.renderers import BaseRenderer
from ninja.throttling import BaseThrottle
from ninja.types import DictStrAny, TCallable

from ninja_extra import exceptions, router
Expand Down Expand Up @@ -48,6 +49,7 @@ def __init__(
urls_namespace: Optional[str] = None,
csrf: bool = False,
auth: Optional[Union[Sequence[Callable], Callable, NOT_SET_TYPE]] = NOT_SET,
throttle: Union[BaseThrottle, List[BaseThrottle], NOT_SET_TYPE] = NOT_SET,
renderer: Optional[BaseRenderer] = None,
parser: Optional[Parser] = None,
openapi_extra: Optional[Dict[str, Any]] = None,
Expand Down

0 comments on commit 93a6360

Please sign in to comment.