MCPcopy Create free account
hub / github.com/Roy3838/Observer / _require_code

Function _require_code

api/remote.py:430–434  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

428# --- Shared route bodies ---
429
430def _require_code(code: str) -> str:
431 normalized = normalize_code(code)
432 if not normalized:
433 raise HTTPException(status_code=400, detail="Not a valid Observer code.")
434 return normalized
435
436
437async def _require_owner(code: str, user_id: str) -> str:

Callers 5

_require_ownerFunction · 0.85
_sessionsFunction · 0.85
remote_telegram_statusFunction · 0.85
remote_telegram_inboxFunction · 0.85
remote_telegram_replyFunction · 0.85

Calls 1

normalize_codeFunction · 0.85

Tested by

no test coverage detected