fix markdown error in README in main (#1147)
This commit is contained in:
parent
0130f5b12b
commit
6566c08446
1 changed files with 2 additions and 3 deletions
|
|
@ -950,13 +950,12 @@ By default, SSE servers are mounted at `/sse` and Streamable HTTP servers are mo
|
|||
The following example shows how to use `streamable_http_app()`, a method that returns a `Starlette` application object.
|
||||
You can then append additional routes to that application as needed.
|
||||
|
||||
```
|
||||
from starlette.routing import Route
|
||||
|
||||
```python
|
||||
mcp = FastMCP("My App")
|
||||
|
||||
app = mcp.streamable_http_app()
|
||||
# Additional non-MCP routes can be added like so:
|
||||
# from starlette.routing import Route
|
||||
# app.router.routes.append(Route("/", endpoint=other_route_function))
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue