MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Tutorial-Website-Chatbot / get_root

Function get_root

server.py:41–44  ·  view source on GitHub ↗

Serve the main configuration page.

(request: Request)

Source from the content-addressed store, hash-verified

39
40@app.get("/", response_class=HTMLResponse)
41async def get_root(request: Request):
42 """Serve the main configuration page."""
43 with open("static/index.html", "r") as f:
44 return HTMLResponse(content=f.read())
45
46@app.get("/chatbot", response_class=HTMLResponse)
47async def get_chatbot(request: Request):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected