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

Function test_page

src/main.py:325–333  ·  view source on GitHub ↗

Model testing page

(request: Request)

Source from the content-addressed store, hash-verified

323
324@app.get("/test", response_class=HTMLResponse)
325async def test_page(request: Request):
326 """Model testing page"""
327 guard_response = _ensure_admin_page_session(request)
328 if guard_response is not None:
329 return guard_response
330 test_file = static_path / "test.html"
331 if test_file.exists():
332 return _static_page_response(test_file)
333 return HTMLResponse(content="<h1>Test Page Not Found</h1>", status_code=404)
334
335
336@app.get("/metrics")

Callers

nothing calls this directly

Calls 2

_static_page_responseFunction · 0.85

Tested by

no test coverage detected