diff --git a/fastapi/applications.py b/fastapi/applications.py index 5cc5682924909..d7212ab9f5372 100644 --- a/fastapi/applications.py +++ b/fastapi/applications.py @@ -294,7 +294,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: 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,