This commit is contained in:
Daniel Collier 2023-09-17 21:57:35 -03:00
parent c81e136d75
commit 346ac873bb
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ class FastAPI(Starlette):
def add_api_route(
self,
path: str,
endpoint: Callable[..., Coroutine[Any, Any, Response]],
endpoint: Callable[..., Any],
*,
response_model: Any = Default(None),
status_code: Optional[int] = None,