Expose app runtime info across adapters

This commit is contained in:
lda
2026-08-30 07:40:58 +07:00 Verified
parent acd412a50a
commit 16553b82c7
9 changed files with 131 additions and 12 deletions
+5
View File
@@ -10,6 +10,11 @@ app = FastAPI(title="IPython Demo", version="0.1.0")
ShellApp = App() # global, scary
@app.get("/info")
def get_info():
return ShellApp.info()
@app.get("/shells")
def list_shells():
shells = ShellApp.list_shells()