Expose app runtime info across adapters
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user