Browse Source

feat: issue-2008 update include_in_schema for options route

pull/10861/head
Volodymyr Kochetkov 1 year ago
parent
commit
7e11cd5df2
  1. 2
      fastapi/routing.py

2
fastapi/routing.py

@ -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…
Cancel
Save