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.
|
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.
|
You can then append additional routes to that application as needed.
|
||||||
|
|
||||||
```
|
```python
|
||||||
from starlette.routing import Route
|
|
||||||
|
|
||||||
mcp = FastMCP("My App")
|
mcp = FastMCP("My App")
|
||||||
|
|
||||||
app = mcp.streamable_http_app()
|
app = mcp.streamable_http_app()
|
||||||
# Additional non-MCP routes can be added like so:
|
# Additional non-MCP routes can be added like so:
|
||||||
|
# from starlette.routing import Route
|
||||||
# app.router.routes.append(Route("/", endpoint=other_route_function))
|
# app.router.routes.append(Route("/", endpoint=other_route_function))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue