skrawcz commented on code in PR #671:
URL: https://github.com/apache/burr/pull/671#discussion_r2926993545


##########
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:
   and example code on how to mount it from some other code.
   
   Also can you add and example to /examples and docs to docs/ for this new 
feature you're adding so that it's documented on how to use it? The example 
will show folks and prove out that this works.



-- 
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]

Reply via email to