mirror of https://github.com/tiangolo/fastapi.git
commit: c2f9db2c03
This commit is contained in:
parent
c81e136d75
commit
346ac873bb
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue