Fix SSE server bug with uncaught TypeError

This commit is contained in:
Allen Porter
2024-12-30 10:04:19 -08:00
parent 59fff69c38
commit 0970ef4ae0
5 changed files with 13 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ Example usage:
# Create Starlette routes for SSE and message handling
routes = [
Route("/sse", endpoint=handle_sse),
Route("/messages", endpoint=handle_messages, methods=["POST"])
Mount("/messages", endpoint=handle_messages, methods=["POST"])
]
# Define handler functions