Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"), README, CLI strings, and branch (coven → hack-house). Gitea repo renamed cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest + golden-vector test still green, binary is now `hack-house`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
14 lines
421 B
Python
14 lines
421 B
Python
from sanic import Blueprint, Request, Sanic
|
|
from sanic.response import json
|
|
from sanic.worker.inspector import Inspector
|
|
|
|
|
|
def setup_health_endpoint(app: Sanic) -> None:
|
|
bp = Blueprint("SanicHealth", url_prefix=app.config.HEALTH_URL_PREFIX)
|
|
|
|
@bp.get(app.config.HEALTH_URI_TO_INFO)
|
|
async def info(request: Request):
|
|
return json(Inspector._make_safe(dict(request.app.m.workers)))
|
|
|
|
app.blueprint(bp)
|