MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / config_page

Function config_page

app/admin/routes.py:54–64  ·  view source on GitHub ↗

配置管理页面

(request: Request)

Source from the content-addressed store, hash-verified

52 dependencies=[Depends(require_auth)],
53)
54async def config_page(request: Request):
55 """配置管理页面"""
56 page_data = build_config_page_data()
57
58 context = {
59 "request": request,
60 "sections": page_data["sections"],
61 "env_content": page_data["env_content"],
62 "overview": page_data["overview"],
63 }
64 return templates.TemplateResponse("config.html", context)
65
66
67@router.get("/logs", response_class=HTMLResponse, dependencies=[Depends(require_auth)])

Callers

nothing calls this directly

Calls 1

build_config_page_dataFunction · 0.90

Tested by

no test coverage detected