MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / manage_page

Function manage_page

src/main.py:313–321  ·  view source on GitHub ↗

Management console page

(request: Request)

Source from the content-addressed store, hash-verified

311
312@app.get("/manage", response_class=HTMLResponse)
313async def manage_page(request: Request):
314 """Management console page"""
315 guard_response = _ensure_admin_page_session(request)
316 if guard_response is not None:
317 return guard_response
318 manage_file = static_path / "manage.html"
319 if manage_file.exists():
320 return _static_page_response(manage_file)
321 return HTMLResponse(content="<h1>Management Page Not Found</h1>", status_code=404)
322
323
324@app.get("/test", response_class=HTMLResponse)

Callers

nothing calls this directly

Calls 2

_static_page_responseFunction · 0.85

Tested by

no test coverage detected