From: Ju Date: Sat, 18 Sep 2021 13:35:28 +0000 (+1200) Subject: Add `routes=routes` to schemas documentation (#1241) X-Git-Tag: 0.17.0~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85316543e7aa69461d3bec536703e5ee6d432a40;p=thirdparty%2Fstarlette.git Add `routes=routes` to schemas documentation (#1241) Co-authored-by: Marcelo Trylesinski --- diff --git a/docs/schemas.md b/docs/schemas.md index 2530ba8d..275e7b29 100644 --- a/docs/schemas.md +++ b/docs/schemas.md @@ -51,7 +51,7 @@ routes = [ Route("/schema", endpoint=openapi_schema, include_in_schema=False) ] -app = Starlette() +app = Starlette(routes=routes) ``` We can now access an OpenAPI schema at the "/schema" endpoint.