mirror of https://github.com/tiangolo/fastapi.git
feat: issue-2008 update include_in_schema for options route
This commit is contained in:
parent
7663b8f12a
commit
7e11cd5df2
|
|
@ -950,7 +950,7 @@ class APIRouter(routing.Router):
|
|||
self.prefix + path,
|
||||
endpoint=options_route,
|
||||
methods=["OPTIONS"],
|
||||
include_in_schema=False,
|
||||
include_in_schema=True,
|
||||
is_auto_options=True,
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue