MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / serve_static

Function serve_static

webapp_modern.py:4815–4817  ·  view source on GitHub ↗

Serve static files from web directory

(filename)

Source from the content-addressed store, hash-verified

4813 # current running state, so a peer's popup can show a Start or a Stop button
4814 # that reflects reality. "External threat detection" maps to the continuous
4815 # threat monitor, which runs independently of threat-intel enrichment — so
4816 # it is controllable even when the enrichment block reads unavailable.
4817 try:
4818 tm_running = bool(_threat_monitor_state.get('enabled'))
4819 except Exception:
4820 tm_running = False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected