skrawcz commented on code in PR #671:
URL: https://github.com/apache/burr/pull/671#discussion_r2926984075
##########
burr/tracking/server/run.py:
##########
@@ -140,7 +140,17 @@ async def lifespan(app: FastAPI):
await backend.lifespan(app).__anext__()
-app = FastAPI(lifespan=lifespan)
+def create_burr_ui_app() -> FastAPI:
+ return FastAPI(lifespan=lifespan)
+
+app = create_burr_ui_app()
+
+def mount_burr_ui(parent_app: FastAPI, path: str = "/burr") -> None:
+ """
+ Mount the Burr UI inside another FastAPI app.
Review Comment:
doc string for parameters
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]