Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Chainlit/cookbook
/ read_main
Function
read_main
reverse_proxy/app.py:8–9 ·
view source on GitHub ↗
(request: Request)
Source
from the content-addressed store, hash-verified
6
7
@app.get(
"/app"
)
8
def
read_main(request: Request):
9
return
{
"message"
:
"Hello World"
,
"root_path"
: request.scope.get(
"root_path"
)}
10
11
12
mount_chainlit(app=app, target=
"clapp.py"
, path=
"/chainlit"
)
Callers
nothing calls this directly
Calls
1
get
Method · 0.80
Tested by
no test coverage detected