MCPcopy Create free account
hub / github.com/cifertech/DisplayKit / _trusted_hosts

Function _trusted_hosts

server/main.py:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def _trusted_hosts() -> list[str] | None:
46 raw = os.environ.get("DISPLAYKIT_TRUSTED_HOSTS", "").strip()
47 if not raw:
48 return None
49 hosts = [h.strip() for h in raw.split(",") if h.strip()]
50 return hosts or None
51
52
53def create_app() -> FastAPI:

Callers 1

create_appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected