MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _static_root

Function _static_root

src/codegraphcontext/viz/server.py:41–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def _static_root() -> Path:
42 if not _static_dir:
43 raise HTTPException(status_code=500, detail="Static directory not configured")
44 return Path(_static_dir).resolve()
45
46
47def _safe_static_file(relative_path: str) -> Path:

Callers 2

_safe_static_fileFunction · 0.85
spa_fallbackFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected