Skip to content

Commit

Permalink
Add routes=routes to schemas documentation (encode#1241)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
soasme and Kludex authored Sep 18, 2021
1 parent ce4687f commit 8531654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8531654

Please sign in to comment.